Skip to content

Commit

Permalink
Update to .NET 9
Browse files Browse the repository at this point in the history
- Update to .NET 9 RC1.
- Fix CA2264 warning.
  • Loading branch information
martincostello committed Sep 18, 2024
1 parent c5c8fec commit 8fec069
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion PollyDemos/Demo11_MultipleConcurrencyLimiters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class Demo11_MultipleConcurrencyLimiters : ConcurrencyLimiterDemoBase

public override async Task ExecuteAsync(CancellationToken externalCancellationToken, IProgress<DemoProgress> progress)
{
ArgumentNullException.ThrowIfNull(nameof(progress));
ArgumentNullException.ThrowIfNull(progress);

PrintHeader(progress);
TotalRequests = 0;
Expand Down
6 changes: 3 additions & 3 deletions PollyDemos/PollyDemos.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<OutputType>Library</OutputType>
<ProjectType>Library</ProjectType>
<RootNamespace>PollyDemos</RootNamespace>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.0-rc.1.24451.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0-rc.1.24431.7" />
<PackageReference Include="Polly.Core" Version="8.4.1" />
<PackageReference Include="Polly.Extensions" Version="8.4.1" />
<PackageReference Include="Polly.RateLimiting" Version="8.4.1" />
Expand Down
2 changes: 1 addition & 1 deletion PollyTestClientConsole/PollyTestClientConsole.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<RootNamespace>PollyTestClientConsole</RootNamespace>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\PollyDemos\PollyDemos.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion PollyTestClientWpf/PollyTestClientWpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion PollyTestWebApi/PollyTestWebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"version": "9.0.100-rc.1.24452.12",
"allowPrerelease": false,
"rollForward": "latestMajor"
}
Expand Down

0 comments on commit 8fec069

Please sign in to comment.