Skip to content

Commit 1456e35

Browse files
committed
Bump .NET Core dependency to net8.0 (and net9.0 in aspnetcorelatest)
1 parent 735a890 commit 1456e35

25 files changed

+61
-56
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,43 +37,43 @@ jobs:
3737

3838
# framework
3939
- name: Core
40-
run: dotnet build src/Framework/Framework --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net6.0 /WarnAsError
40+
run: dotnet build src/Framework/Framework --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net8.0 /WarnAsError
4141
- name: Framework
42-
run: dotnet build src/Framework/Framework --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net6.0 /WarnAsError
42+
run: dotnet build src/Framework/Framework --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net8.0 /WarnAsError
4343
- name: Testing
44-
run: dotnet build src/Framework/Testing --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net6.0 /WarnAsError
44+
run: dotnet build src/Framework/Testing --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net8.0 /WarnAsError
4545

4646
# hosting
4747
- name: Hosting.AspNetCore
48-
run: dotnet build src/Framework/Hosting.AspNetCore --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net6.0 /WarnAsError
48+
run: dotnet build src/Framework/Hosting.AspNetCore --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net8.0 /WarnAsError
4949

5050
# command-line
5151
- name: CommandLine
52-
run: dotnet build src/Tools/CommandLine --configuration ${{ matrix.configuration }} --no-restore --framework net6.0 /WarnAsError
52+
run: dotnet build src/Tools/CommandLine --configuration ${{ matrix.configuration }} --no-restore --framework net8.0 /WarnAsError
5353

5454
# swashbuckle
5555
- name: Api.Swashbuckle.AspNetCore
56-
run: dotnet build src/Api/Swashbuckle.AspNetCore --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net6.0 /WarnAsError
56+
run: dotnet build src/Api/Swashbuckle.AspNetCore --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net8.0 /WarnAsError
5757

5858
# hot reload
5959
- name: HotReload.Common
60-
run: dotnet build src/Tools/HotReload/Common --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net6.0 /WarnAsError
60+
run: dotnet build src/Tools/HotReload/Common --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net8.0 /WarnAsError
6161
- name: HotReload.AspNetCore
62-
run: dotnet build src/Tools/HotReload/AspNetCore --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net6.0 /WarnAsError
62+
run: dotnet build src/Tools/HotReload/AspNetCore --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net8.0 /WarnAsError
6363

6464
# application insights
6565
- name: Tracing.ApplicationInsights
66-
run: dotnet build src/Tracing/ApplicationInsights --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net6.0 /WarnAsError
66+
run: dotnet build src/Tracing/ApplicationInsights --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net8.0 /WarnAsError
6767
- name: Tracing.ApplicationInsights.AspNetCore
68-
run: dotnet build src/Tracing/ApplicationInsights.AspNetCore --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net6.0 /WarnAsError
68+
run: dotnet build src/Tracing/ApplicationInsights.AspNetCore --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net8.0 /WarnAsError
6969

7070
# miniprofiler
7171
- name: Tracing.MiniProfiler.AspNetCore
72-
run: dotnet build src/Tracing/MiniProfiler.AspNetCore --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net6.0 /WarnAsError
72+
run: dotnet build src/Tracing/MiniProfiler.AspNetCore --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net8.0 /WarnAsError
7373

7474
# dynamic data
7575
- name: DynamicData
76-
run: dotnet build src/DynamicData/DynamicData --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net6.0 /WarnAsError
76+
run: dotnet build src/DynamicData/DynamicData --configuration ${{ matrix.configuration }} --no-restore --no-incremental --framework net8.0 /WarnAsError
7777

7878
build-all:
7979
name: Build all projects without errors
@@ -125,15 +125,15 @@ jobs:
125125
title: Framework Tests
126126
github-token: ${{ secrets.GITHUB_TOKEN }}
127127
target-framework: net472
128-
- name: Analyzers.Tests (net6.0)
128+
- name: Analyzers.Tests (net8.0)
129129
uses: ./.github/unittest
130130
if: ${{ success() || failure() }}
131131
with:
132132
project: src/Analyzers/Analyzers.Tests
133133
name: analyzers-tests
134134
title: Analyzer Tests
135135
github-token: ${{ secrets.GITHUB_TOKEN }}
136-
target-framework: net6.0
136+
target-framework: net8.0
137137
# - name: Analyzers.Tests (net7.0)
138138
# uses: ./.github/unittest
139139
# with:

src/Analyzers/Analyzers.Tests/DotVVM.Analyzers.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>$(DotnetCoreTargetVersion)</TargetFramework>
55
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
66
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
77
<Nullable>enable</Nullable>

src/Api/Swashbuckle.AspNetCore.Tests/DotVVM.Framework.Api.Swashbuckle.AspNetCore.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>$(DotnetCoreTargetVersion)</TargetFramework>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

src/Api/Swashbuckle.AspNetCore/DotVVM.Framework.Api.Swashbuckle.AspNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.1;net6.0</TargetFrameworks>
4+
<TargetFrameworks>$(DotnetCoreTargetVersion)</TargetFrameworks>
55
<PackageId>DotVVM.Api.Swashbuckle.AspNetCore</PackageId>
66
<Description>Swashbuckle.AspNetCore extensions for DotVVM.</Description>
77
</PropertyGroup>

src/Directory.Build.props

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@
2525
<NoWarn>$(NoWarn);CS1591;CS1573</NoWarn>
2626
<Deterministic>true</Deterministic>
2727
<PreserveCompilationContext>true</PreserveCompilationContext>
28-
<DefaultTargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">netstandard2.1;net6.0;net472</DefaultTargetFrameworks>
29-
<DefaultTargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.1;net6.0</DefaultTargetFrameworks>
28+
<OldFrameworkTargetVersion>net472</OldFrameworkTargetVersion>
29+
<DotnetCoreTargetVersion>net8.0</DotnetCoreTargetVersion>
30+
<DotnetCoreLatestTargetVersion>net9.0</DotnetCoreLatestTargetVersion>
31+
<!-- we keep netstandard2.1 target, because it quite reliably disallows using new .NET Core APIs which would other only fail on Windows -->
32+
<DefaultTargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">netstandard2.1;$(DotnetCoreTargetVersion);$(OldFrameworkTargetVersion)</DefaultTargetFrameworks>
33+
<DefaultTargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.1;$(DotnetCoreTargetVersion);</DefaultTargetFrameworks>
3034
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
3135
<AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages>
3236
</PropertyGroup>

src/Framework/Core/DotVVM.Core.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
<EmbeddedResource Include="compiler\resources\**\*" />
1717
</ItemGroup>
1818
<ItemGroup>
19-
<PackageReference Include="System.Text.Json" Version="8.0.5" />
2019
</ItemGroup>
2120
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' ">
2221
<PackageReference Include="System.ComponentModel.Annotations" Version="4.3.0" />
22+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
2323
</ItemGroup>
2424
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
2525
<Reference Include="System" />
@@ -28,6 +28,7 @@
2828
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
2929
<PrivateAssets>all</PrivateAssets>
3030
</PackageReference>
31+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
3132
</ItemGroup>
3233
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
3334
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>

src/Framework/Framework/DotVVM.Framework.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project ToolsVersion="15.0" Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<AssemblyTitle>DotVVM</AssemblyTitle>
4-
<TargetFrameworks>$(DefaultTargetFrameworks)</TargetFrameworks>
4+
<TargetFrameworks>$(DefaultTargetFrameworks);$(DotnetCoreLatestTargetVersion)</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<AssemblyOriginatorKeyFile>dotvvmwizard.snk</AssemblyOriginatorKeyFile>
77
<SignAssembly>true</SignAssembly>

src/Framework/Hosting.AspNetCore/DotVVM.Framework.Hosting.AspNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project ToolsVersion="15.0" Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFrameworks>netstandard2.1;net6.0</TargetFrameworks>
3+
<TargetFrameworks>$(DotnetCoreTargetVersion)</TargetFrameworks>
44
<GenerateDocumentationFile>true</GenerateDocumentationFile>
55
<AssemblyOriginatorKeyFile>dotvvmwizard.snk</AssemblyOriginatorKeyFile>
66
<SignAssembly>true</SignAssembly>

src/Samples/Api.AspNetCore/DotVVM.Samples.BasicSamples.Api.AspNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>$(DotnetCoreTargetVersion)</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

src/Samples/Api.AspNetCoreLatest/DotVVM.Samples.BasicSamples.Api.AspNetCoreLatest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>$(DotnetCoreLatestTargetVersion)</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

0 commit comments

Comments
 (0)