Skip to content

Commit 6ff97aa

Browse files
committed
add .net9.0 target
1 parent c66bd38 commit 6ff97aa

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

build/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project>
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
66
<OutputPath>..\..\run\</OutputPath>
77
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
88
<Nullable>enable</Nullable>
9-
<LangVersion>12</LangVersion>
9+
<LangVersion>latest</LangVersion>
1010
<NoWarn>NU1604</NoWarn>
1111
<ImplicitUsings>enable</ImplicitUsings>
1212
</PropertyGroup>

build/common/Utilities/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public static class Constants
77
public const string Repository = "GitVersion";
88

99
public const string VersionLatest = "8.0";
10-
public static readonly string[] DotnetVersions = [VersionLatest];
10+
public static readonly string[] DotnetVersions = [VersionLatest, "9.0"];
1111

1212
public const string DefaultBranch = "main";
1313
public const string DefaultConfiguration = "Release";

new-cli/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<RootNamespace>GitVersion</RootNamespace>
55

66
<LangVersion>latest</LangVersion>

src/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<TargetFrameworks>net8.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
44

55
<EndYear>$([System.DateTime]::Today.Year)</EndYear>
66
<Authors>GitTools and Contributors</Authors>
@@ -22,7 +22,7 @@
2222
<WarningsAsErrors>$(WarningsAsErrors);RS0016;RS0017;RS0022;RS0024;RS0025;RS0026;RS0027</WarningsAsErrors>
2323

2424
<DebugType>embedded</DebugType>
25-
<LangVersion>12</LangVersion>
25+
<LangVersion>latest</LangVersion>
2626
<ImplicitUsings>enable</ImplicitUsings>
2727
<Nullable>enable</Nullable>
2828
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>

src/GitVersion.MsBuild/GitVersion.MsBuild.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<None Include="msbuild/buildMultiTargeting/*.*" Pack="true" PackagePath="buildMultiTargeting" />
4040

4141
<None Include="$(ExePublishPath)/net8.0/publish/**/*;$(BinPath)/net8.0/GitVersion.MsBuild.*" Pack="true" PackagePath="tools/net8.0" />
42+
<None Include="$(ExePublishPath)/net9.0/publish/**/*;$(BinPath)/net9.0/GitVersion.MsBuild.*" Pack="true" PackagePath="tools/net9.0" />
4243
</ItemGroup>
4344

4445
</Project>

0 commit comments

Comments
 (0)