From 031ad4feb91a5c103ca6bbbad62e5c0f79a614fb Mon Sep 17 00:00:00 2001 From: Zi Chen Date: Mon, 2 Dec 2024 11:23:41 -0800 Subject: [PATCH 1/4] Use .NET 6 assemblies --- .../Microsoft.Build.Sql.Templates.csproj | 2 +- .../Microsoft.Build.Sql.csproj | 16 ++++++++-------- src/Microsoft.Build.Sql/sdk/Sdk.props | 2 +- src/Microsoft.Build.Sql/sdk/Sdk.targets | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Microsoft.Build.Sql.Templates/Microsoft.Build.Sql.Templates.csproj b/src/Microsoft.Build.Sql.Templates/Microsoft.Build.Sql.Templates.csproj index 37eafef..f53ee0b 100644 --- a/src/Microsoft.Build.Sql.Templates/Microsoft.Build.Sql.Templates.csproj +++ b/src/Microsoft.Build.Sql.Templates/Microsoft.Build.Sql.Templates.csproj @@ -1,7 +1,7 @@ - netstandard2.1 + net6.0 Template Microsoft.Build.Sql.Templates Microsoft.Build.Sql templates diff --git a/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj b/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj index 128266f..17abbf6 100644 --- a/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj +++ b/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj @@ -1,14 +1,14 @@ - netstandard2.1 + net6.0 $(MSBuildThisFileDirectory)Microsoft.Build.Sql.nuspec MSBuildSDK false true - $(MSBuildThisFileDirectory)\tools\netstandard2.1\ + $(MSBuildThisFileDirectory)\tools\net6.0\ @@ -24,14 +24,14 @@ - - - + + + - + - - + + diff --git a/src/Microsoft.Build.Sql/sdk/Sdk.props b/src/Microsoft.Build.Sql/sdk/Sdk.props index 4b94526..8c16d19 100644 --- a/src/Microsoft.Build.Sql/sdk/Sdk.props +++ b/src/Microsoft.Build.Sql/sdk/Sdk.props @@ -11,7 +11,7 @@ true false - $(MSBuildThisFileDirectory)..\tools\netstandard2.1 + $(MSBuildThisFileDirectory)..\tools\net6.0 netstandard2.1 @(SupportedTargetFramework->'%(Alias)') diff --git a/src/Microsoft.Build.Sql/sdk/Sdk.targets b/src/Microsoft.Build.Sql/sdk/Sdk.targets index abb5a46..9b9c2a4 100644 --- a/src/Microsoft.Build.Sql/sdk/Sdk.targets +++ b/src/Microsoft.Build.Sql/sdk/Sdk.targets @@ -51,7 +51,7 @@ --> - + From 8212977e7b97248f5b23f941b2cb47ab659e6054 Mon Sep 17 00:00:00 2001 From: Zi Chen Date: Tue, 3 Dec 2024 10:25:58 -0800 Subject: [PATCH 2/4] Update to .NET 8 --- .github/workflows/pr-validation.yml | 6 +----- .../Microsoft.Build.Sql.Templates.csproj | 2 +- src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj | 12 ++++++------ src/Microsoft.Build.Sql/sdk/Sdk.props | 2 +- src/Microsoft.Build.Sql/sdk/Sdk.targets | 2 +- test/Microsoft.Build.Sql.Tests/BuildTests.cs | 4 ---- .../Microsoft.Build.Sql.Tests.csproj | 2 +- 7 files changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index e4bc680..fe72d77 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -9,12 +9,8 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest, macos-latest] - targetFramework: [net6.0, net7.0, net8.0, net9.0] + targetFramework: [net8.0, net9.0] include: - - targetFramework: net6.0 - dotnetVersion: 6.x - - targetFramework: net7.0 - dotnetVersion: 7.x - targetFramework: net8.0 dotnetVersion: 8.x - targetFramework: net9.0 diff --git a/src/Microsoft.Build.Sql.Templates/Microsoft.Build.Sql.Templates.csproj b/src/Microsoft.Build.Sql.Templates/Microsoft.Build.Sql.Templates.csproj index f53ee0b..0b085fb 100644 --- a/src/Microsoft.Build.Sql.Templates/Microsoft.Build.Sql.Templates.csproj +++ b/src/Microsoft.Build.Sql.Templates/Microsoft.Build.Sql.Templates.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 Template Microsoft.Build.Sql.Templates Microsoft.Build.Sql templates diff --git a/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj b/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj index 17abbf6..1ebf7f0 100644 --- a/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj +++ b/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj @@ -1,14 +1,14 @@ - net6.0 + net8.0 $(MSBuildThisFileDirectory)Microsoft.Build.Sql.nuspec MSBuildSDK false true - $(MSBuildThisFileDirectory)\tools\net6.0\ + $(MSBuildThisFileDirectory)\tools\net8.0\ @@ -24,14 +24,14 @@ - - - + + + - + diff --git a/src/Microsoft.Build.Sql/sdk/Sdk.props b/src/Microsoft.Build.Sql/sdk/Sdk.props index 8c16d19..67e4218 100644 --- a/src/Microsoft.Build.Sql/sdk/Sdk.props +++ b/src/Microsoft.Build.Sql/sdk/Sdk.props @@ -11,7 +11,7 @@ true false - $(MSBuildThisFileDirectory)..\tools\net6.0 + $(MSBuildThisFileDirectory)..\tools\net8.0 netstandard2.1 @(SupportedTargetFramework->'%(Alias)') diff --git a/src/Microsoft.Build.Sql/sdk/Sdk.targets b/src/Microsoft.Build.Sql/sdk/Sdk.targets index 9b9c2a4..02c428c 100644 --- a/src/Microsoft.Build.Sql/sdk/Sdk.targets +++ b/src/Microsoft.Build.Sql/sdk/Sdk.targets @@ -51,7 +51,7 @@ --> - + diff --git a/test/Microsoft.Build.Sql.Tests/BuildTests.cs b/test/Microsoft.Build.Sql.Tests/BuildTests.cs index ff4c154..910e16c 100644 --- a/test/Microsoft.Build.Sql.Tests/BuildTests.cs +++ b/test/Microsoft.Build.Sql.Tests/BuildTests.cs @@ -320,12 +320,8 @@ public void VerifyBuildWithTransitiveProjectReferences() [TestCase("netcoreapp3.1")] [TestCase("net5.0")] [TestCase("net6.0")] -#if NET7_0_OR_GREATER [TestCase("net7.0")] -#endif -#if NET8_0_OR_GREATER [TestCase("net8.0")] -#endif #if NET9_0_OR_GREATER [TestCase("net9.0")] #endif diff --git a/test/Microsoft.Build.Sql.Tests/Microsoft.Build.Sql.Tests.csproj b/test/Microsoft.Build.Sql.Tests/Microsoft.Build.Sql.Tests.csproj index 3c4b355..fddcc78 100644 --- a/test/Microsoft.Build.Sql.Tests/Microsoft.Build.Sql.Tests.csproj +++ b/test/Microsoft.Build.Sql.Tests/Microsoft.Build.Sql.Tests.csproj @@ -3,7 +3,7 @@ - net6.0;net7.0;net8.0;net9.0 + net8.0;net9.0 enable false From a2b36cfc4e1bcba072d907b65b77ec420679e4cb Mon Sep 17 00:00:00 2001 From: Zi Chen Date: Tue, 3 Dec 2024 10:34:38 -0800 Subject: [PATCH 3/4] Fix build error --- src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj b/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj index 1ebf7f0..3d8ee4f 100644 --- a/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj +++ b/src/Microsoft.Build.Sql/Microsoft.Build.Sql.csproj @@ -17,7 +17,7 @@ - + @@ -26,11 +26,11 @@ - + - + From 541cebd3f443f275089c070b6727ebc46e9f14ae Mon Sep 17 00:00:00 2001 From: Zi Chen Date: Mon, 9 Dec 2024 10:53:39 -0800 Subject: [PATCH 4/4] Empty commit to retrigger checks