Skip to content

Commit 04aac8c

Browse files
committed
Update to .NET 9
1 parent 69f9814 commit 04aac8c

File tree

5 files changed

+16
-39
lines changed

5 files changed

+16
-39
lines changed

.github/workflows/publishrelease.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup .NET Core
2121
uses: actions/setup-dotnet@v3
2222
with:
23-
dotnet-version: 7.0.x
23+
dotnet-version: 9.0.x
2424

2525
- name: Display dotnet version
2626
run: dotnet --version
@@ -68,7 +68,7 @@ jobs:
6868

6969
- name: Publish win
7070
working-directory: .\${{ env.PROJECT_NAME }}
71-
run: dotnet publish ${{ env.PROJECT_NAME }} -r win-x64 -f net7.0-windows -c Release -p:PublishSingleFile=true --no-self-contained -o:.\FrameworkDependentSingleFile\win
71+
run: dotnet publish ${{ env.PROJECT_NAME }} -r win-x64 -f net9.0-windows -c Release -p:PublishSingleFile=true --no-self-contained -o:.\FrameworkDependentSingleFile\win
7272

7373
- name: List file tree
7474
run: tree -fi
Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,22 @@
11
<Project>
22

33
<PropertyGroup>
4-
<LangVersion>11.0</LangVersion>
4+
<LangVersion>13.0</LangVersion>
55
<Nullable>enable</Nullable>
66

7-
<!-- required for auto incrementing assembly version, which is needed for KTA -->
7+
<!-- required for auto incrementing assembly version -->
88
<Deterministic>false</Deterministic>
9-
<AssemblyVersion>1.0.0.*</AssemblyVersion>
9+
<AssemblyVersion>1.0.*</AssemblyVersion>
1010
</PropertyGroup>
1111

12-
13-
<PropertyGroup>
14-
<NoWarn>$(NoWarn);CS7035</NoWarn>
15-
<!-- CS7035 The specified version string does not conform to the recommended format - major.minor.build.revision -->
16-
</PropertyGroup>
17-
18-
19-
<!--
20-
C# 8.0 on .NET Framework:
21-
https://stu.dev/csharp8-doing-unsupported-things/
22-
https://stackoverflow.com/questions/56651472/does-c-sharp-8-support-the-net-framework/57020770#57020770
23-
-->
24-
<ItemGroup Condition=" '$(LangVersion)' >= '8.0' " >
25-
<!-- C# 8.0 on .NET Framework: Indexes and Ranges -->
26-
27-
<PackageReference Include="PolySharp" Version="1.13.1">
28-
<PrivateAssets>all</PrivateAssets>
29-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
30-
</PackageReference>
31-
32-
<!--
33-
C# 8.0 on .NET Framework: Provide nullable attribures and nullability annotations
34-
https://github.com/tunnelvisionlabs/ReferenceAssemblyAnnotator
35-
36-
<PackageReference Include="TunnelVisionLabs.ReferenceAssemblyAnnotator" Version="1.0.0-alpha.160">
37-
<PrivateAssets>all</PrivateAssets>
38-
</PackageReference>
39-
<PackageDownload Include="Microsoft.NETCore.App.Ref" Version="[5.0.0]" />
40-
-->
12+
<ItemGroup>
13+
<PackageReference Include="PolySharp" Version="1.14.1">
14+
<PrivateAssets>all</PrivateAssets>
15+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16+
</PackageReference>
17+
</ItemGroup>
4118

42-
</ItemGroup>
19+
4320

4421

4522
</Project>

EventLogAnalyzer/EventLogAnalysis/EventLogAnalysis.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net48;net7.0-windows</TargetFrameworks>
4+
<TargetFrameworks>net48;net9.0-windows</TargetFrameworks>
55
<Nullable>enable</Nullable>
66
<UseWindowsForms>true</UseWindowsForms>
77
<ImplicitUsings>false</ImplicitUsings>
@@ -10,7 +10,7 @@
1010
<ItemGroup>
1111
<PackageReference Include="Fastenshtein" Version="1.0.0.8" />
1212
<PackageReference Include="Serilog" Version="2.10.0" />
13-
<PackageReference Include="System.Diagnostics.EventLog" Version="6.0.0" />
13+
<PackageReference Include="System.Diagnostics.EventLog" Version="9.0.0" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

EventLogAnalyzer/EventLogAnalyzer/EventLogAnalyzer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
55
<!-- <TargetFramework>net6.0-windows</TargetFramework>-->
6-
<TargetFrameworks>net48;net7.0-windows</TargetFrameworks>
6+
<TargetFrameworks>net48;net9.0-windows</TargetFrameworks>
77
<UseWindowsForms>true</UseWindowsForms>
88
<Nullable>enable</Nullable>
99
<ImplicitUsings>false</ImplicitUsings>

EventLogAnalyzer/Similarity/Similarity.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>net48;net7.0-windows</TargetFrameworks>
4+
<TargetFrameworks>net48;net9.0-windows</TargetFrameworks>
55
<LangVersion>10.0</LangVersion>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>disable</ImplicitUsings>

0 commit comments

Comments
 (0)