Skip to content

Commit

Permalink
Start support for .net 9
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbilas committed Dec 1, 2024
1 parent a991c82 commit f161aac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Copyright>Copyright © $(Authors)</Copyright>

<!-- framework -->
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<EnablePreviewFeatures>true</EnablePreviewFeatures>
Expand All @@ -21,8 +21,8 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>8</AnalysisLevel>
<NoWarn>$(NoWarn);CS8524</NoWarn>
<AnalysisLevel>latest</AnalysisLevel>
<NoWarn>$(NoWarn);CS8524;NU1900</NoWarn>

<!-- language -->
<Nullable>enable</Nullable>
Expand Down
3 changes: 3 additions & 0 deletions src/Core/CliUtility.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System.Text.RegularExpressions;
#if NETSTANDARD
using System.Diagnostics;
#endif

namespace OkTools.Core;

Expand Down
1 change: 1 addition & 0 deletions targets/Library.targets
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

<PropertyGroup Condition=" $(OkFeatures.Contains(';NetMulti;')) ">
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
<TargetFramework/>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
</PropertyGroup>

Expand Down

0 comments on commit f161aac

Please sign in to comment.