From f18e0cf85711169e584fbfba16497770262bd4b5 Mon Sep 17 00:00:00 2001 From: Artur Stolear Date: Tue, 31 Oct 2023 00:51:58 +0100 Subject: [PATCH] Update SDK version in global.json The SDK version in global.json file has been updated from 7.0.400 to 8.0.100-rc.2.23502.2. Additionally, the "allowPrerelease" attribute has been added and set to true. --- build/CI.sln | 1 + build/Directory.Build.props | 2 +- build/build/BuildLifetime.cs | 3 +++ global.json | 4 +++- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build/CI.sln b/build/CI.sln index bf8a53ac34..1208929bd6 100644 --- a/build/CI.sln +++ b/build/CI.sln @@ -4,6 +4,7 @@ ProjectSection(SolutionItems) = preProject Directory.Build.props = Directory.Build.props Directory.Packages.props = Directory.Packages.props ..\dotnet-tools.json = ..\dotnet-tools.json + ..\global.json = ..\global.json EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "build", "build\build.csproj", "{1AC00FB2-E28A-46B7-9683-AA7A1AFC29EB}" diff --git a/build/Directory.Build.props b/build/Directory.Build.props index 5dc19ed4be..c22a23648c 100644 --- a/build/Directory.Build.props +++ b/build/Directory.Build.props @@ -1,7 +1,7 @@  Exe - net7.0 + net8.0 $(MSBuildProjectDirectory) ..\..\run\ false diff --git a/build/build/BuildLifetime.cs b/build/build/BuildLifetime.cs index 5b71d31a86..fb16f3e2e2 100644 --- a/build/build/BuildLifetime.cs +++ b/build/build/BuildLifetime.cs @@ -41,5 +41,8 @@ private static void SetMsBuildSettingsVersion(BuildContext context) msBuildSettings.WithProperty("RepositoryCommit", version.GitVersion.Sha); msBuildSettings.WithProperty("NoPackageAnalysis", "true"); msBuildSettings.WithProperty("UseSharedCompilation", "false"); + + // https://github.com/dotnet/docs/issues/37674 + msBuildSettings.WithProperty("IncludeSourceRevisionInInformationalVersion", "false"); } } diff --git a/global.json b/global.json index 06ce1b4852..0a9312a031 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,7 @@ { "sdk": { - "version": "7.0.400" + "version": "8.0.100-rc.2.23502.2", + "allowPrerelease": true, + "rollForward": "latestMajor" } }