Skip to content

Commit

Permalink
Update to Net8
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio1192 committed May 3, 2024
1 parent 0f613c2 commit 076a636
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 25 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ jobs:
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
3.1.417
5.0.101
6.0.300
7.0.302
6.0.421
7.0.408
8.0.204
- name: Build
run: dotnet build -c $BUILD_CONFIG

- name: Test
run: dotnet test -c $BUILD_CONFIG --no-build
run: dotnet test -c $BUILD_CONFIG --no-build
7 changes: 3 additions & 4 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ jobs:
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
3.1.417
5.0.101
6.0.300
7.0.302
6.0.421
7.0.408
8.0.204
- name: Build
run: dotnet build -c $BUILD_CONFIG
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup Label="SDK Versions">
<NetCoreTargetVersion>netcoreapp3.1;net5.0;net6.0;net7.0</NetCoreTargetVersion>
<NetCoreTargetVersion>net6.0;net7.0;net8.0</NetCoreTargetVersion>
<LangVersion>latest</LangVersion>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
Expand Down
25 changes: 11 additions & 14 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<Project>
<PropertyGroup Label=".Net version" Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
<NetCoreVersion>3.1.32</NetCoreVersion>
</PropertyGroup>
<PropertyGroup Label=".Net version" Condition=" '$(TargetFramework)' == 'net5.0' ">
<NetCoreVersion>5.0.17</NetCoreVersion>
</PropertyGroup>
<PropertyGroup Label=".Net version" Condition=" '$(TargetFramework)' == 'net6.0' ">
<NetCoreVersion>6.0.16</NetCoreVersion>
<NetCoreVersion>6.0.29</NetCoreVersion>
</PropertyGroup>
<PropertyGroup Label=".Net version" Condition=" '$(TargetFramework)' == 'net7.0' ">
<NetCoreVersion>7.0.5</NetCoreVersion>
<NetCoreVersion>7.0.18</NetCoreVersion>
</PropertyGroup>
<PropertyGroup Label=".Net version" Condition=" '$(TargetFramework)' == 'net8.0' ">
<NetCoreVersion>8.0.4</NetCoreVersion>
</PropertyGroup>
<ItemGroup Label="General Dependencies">
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
Expand All @@ -20,13 +17,13 @@
</ItemGroup>
<ItemGroup Label="Testing Dependencies">
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="$(NetCoreVersion)" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageVersion Include="FluentAssertions" Version="6.11.0" />
<PackageVersion Include="xunit" Version="2.4.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageVersion Include="coverlet.collector" Version="3.2.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="xunit" Version="2.8.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
</ItemGroup>
<ItemGroup Label="Github Dependencies">
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"projects": ["src", "test", "samples"],
"sdk": {
"version": "6.0.000",
"version": "8.0.000",
"rollForward": "latestMajor"
}
}

0 comments on commit 076a636

Please sign in to comment.