Skip to content

Commit

Permalink
Update to .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
smklancher committed Nov 13, 2024
1 parent 69f9814 commit 04aac8c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publishrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 9.0.x

- name: Display dotnet version
run: dotnet --version
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:

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

- name: List file tree
run: tree -fi
Expand Down
43 changes: 10 additions & 33 deletions EventLogAnalyzer/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,45 +1,22 @@
<Project>

<PropertyGroup>
<LangVersion>11.0</LangVersion>
<LangVersion>13.0</LangVersion>
<Nullable>enable</Nullable>

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


<PropertyGroup>
<NoWarn>$(NoWarn);CS7035</NoWarn>
<!-- CS7035 The specified version string does not conform to the recommended format - major.minor.build.revision -->
</PropertyGroup>


<!--
C# 8.0 on .NET Framework:
https://stu.dev/csharp8-doing-unsupported-things/
https://stackoverflow.com/questions/56651472/does-c-sharp-8-support-the-net-framework/57020770#57020770
-->
<ItemGroup Condition=" '$(LangVersion)' >= '8.0' " >
<!-- C# 8.0 on .NET Framework: Indexes and Ranges -->

<PackageReference Include="PolySharp" Version="1.13.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

<!--
C# 8.0 on .NET Framework: Provide nullable attribures and nullability annotations
https://github.com/tunnelvisionlabs/ReferenceAssemblyAnnotator
<PackageReference Include="TunnelVisionLabs.ReferenceAssemblyAnnotator" Version="1.0.0-alpha.160">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageDownload Include="Microsoft.NETCore.App.Ref" Version="[5.0.0]" />
-->
<ItemGroup>
<PackageReference Include="PolySharp" Version="1.14.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</ItemGroup>



</Project>
4 changes: 2 additions & 2 deletions EventLogAnalyzer/EventLogAnalysis/EventLogAnalysis.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net48;net7.0-windows</TargetFrameworks>
<TargetFrameworks>net48;net9.0-windows</TargetFrameworks>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>false</ImplicitUsings>
Expand All @@ -10,7 +10,7 @@
<ItemGroup>
<PackageReference Include="Fastenshtein" Version="1.0.0.8" />
<PackageReference Include="Serilog" Version="2.10.0" />
<PackageReference Include="System.Diagnostics.EventLog" Version="6.0.0" />
<PackageReference Include="System.Diagnostics.EventLog" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion EventLogAnalyzer/EventLogAnalyzer/EventLogAnalyzer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<!-- <TargetFramework>net6.0-windows</TargetFramework>-->
<TargetFrameworks>net48;net7.0-windows</TargetFrameworks>
<TargetFrameworks>net48;net9.0-windows</TargetFrameworks>
<UseWindowsForms>true</UseWindowsForms>
<Nullable>enable</Nullable>
<ImplicitUsings>false</ImplicitUsings>
Expand Down
2 changes: 1 addition & 1 deletion EventLogAnalyzer/Similarity/Similarity.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net48;net7.0-windows</TargetFrameworks>
<TargetFrameworks>net48;net9.0-windows</TargetFrameworks>
<LangVersion>10.0</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
Expand Down

0 comments on commit 04aac8c

Please sign in to comment.