diff --git a/src/SourceBuild/tarball/patches/msbuild/0003-Restore-building-all-TFMs-for-source-build.patch b/src/SourceBuild/tarball/patches/msbuild/0003-Restore-building-all-TFMs-for-source-build.patch index 04c684a0d..da26d2cb7 100644 --- a/src/SourceBuild/tarball/patches/msbuild/0003-Restore-building-all-TFMs-for-source-build.patch +++ b/src/SourceBuild/tarball/patches/msbuild/0003-Restore-building-all-TFMs-for-source-build.patch @@ -3,14 +3,29 @@ From: Chris Rummel Date: Wed, 20 Oct 2021 15:19:29 -0500 Subject: [PATCH] Restore building all TFMs for source-build -Required for omnisharp, nuget-client, templating +Required for omnisharp, nuget-client, templating, sdk Background Issue: https://github.com/dotnet/source-build/issues/2542 Patch removal issue: https://github.com/dotnet/source-build/issues/2556 --- - src/Directory.Build.props | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) + src/Build/Microsoft.Build.csproj | 3 +-- + src/Directory.Build.props | 3 +-- + 2 files changed, 2 insertions(+), 4 deletions(-) +diff --git a/src/Build/Microsoft.Build.csproj b/src/Build/Microsoft.Build.csproj +index f75408633..8dc86355a 100644 +--- a/src/Build/Microsoft.Build.csproj ++++ b/src/Build/Microsoft.Build.csproj +@@ -4,8 +4,7 @@ + + + +- net6.0 +- $(FullFrameworkTFM);net6.0 ++ $(FullFrameworkTFM);net6.0 + $(RuntimeOutputTargetFrameworks) + Microsoft.Build + Microsoft.Build diff --git a/src/Directory.Build.props b/src/Directory.Build.props index b0e233194..7e0c7d8c8 100644 --- a/src/Directory.Build.props diff --git a/src/SourceBuild/tarball/patches/sdk/0001-Build-Microsoft.NET.Build.Tasks-for-netfx.patch b/src/SourceBuild/tarball/patches/sdk/0001-Build-Microsoft.NET.Build.Tasks-for-netfx.patch new file mode 100644 index 000000000..2ccf89e9e --- /dev/null +++ b/src/SourceBuild/tarball/patches/sdk/0001-Build-Microsoft.NET.Build.Tasks-for-netfx.patch @@ -0,0 +1,76 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Eric Erhardt +Date: Fri, 22 Oct 2021 20:48:25 +0000 +Subject: [PATCH] Build Microsoft.NET.Build.Tasks for netfx + +Required for omnisharp to work with a source-built .NET SDK. + +Patch removal issue: https://github.com/dotnet/sdk/issues/22281 +--- + .../Microsoft.DotNet.Compatibility.csproj | 1 - + .../Microsoft.DotNet.PackageValidation.csproj | 7 ++++++- + .../Microsoft.NET.Build.Extensions.Tasks.csproj | 1 - + .../Microsoft.NET.Build.Tasks.csproj | 1 - + 4 files changed, 6 insertions(+), 4 deletions(-) + +diff --git a/src/Compatibility/Microsoft.DotNet.Compatibility/Microsoft.DotNet.Compatibility.csproj b/src/Compatibility/Microsoft.DotNet.Compatibility/Microsoft.DotNet.Compatibility.csproj +index 92624be845..f9f8e46329 100644 +--- a/src/Compatibility/Microsoft.DotNet.Compatibility/Microsoft.DotNet.Compatibility.csproj ++++ b/src/Compatibility/Microsoft.DotNet.Compatibility/Microsoft.DotNet.Compatibility.csproj +@@ -2,7 +2,6 @@ + + + net6.0;net472 +- net6.0 + true + true + Open +diff --git a/src/Compatibility/Microsoft.DotNet.PackageValidation/Microsoft.DotNet.PackageValidation.csproj b/src/Compatibility/Microsoft.DotNet.PackageValidation/Microsoft.DotNet.PackageValidation.csproj +index 7a8b648652..4f820adb72 100644 +--- a/src/Compatibility/Microsoft.DotNet.PackageValidation/Microsoft.DotNet.PackageValidation.csproj ++++ b/src/Compatibility/Microsoft.DotNet.PackageValidation/Microsoft.DotNet.PackageValidation.csproj +@@ -2,7 +2,6 @@ + + + net6.0;net472 +- net6.0 + Open + + +@@ -15,6 +14,12 @@ + + + ++ ++ ++ ++ ++ ++ + + + +diff --git a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/Microsoft.NET.Build.Extensions.Tasks.csproj b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/Microsoft.NET.Build.Extensions.Tasks.csproj +index 13ada82225..280fbdc83e 100644 +--- a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/Microsoft.NET.Build.Extensions.Tasks.csproj ++++ b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/Microsoft.NET.Build.Extensions.Tasks.csproj +@@ -16,7 +16,6 @@ + Library + Microsoft.NET.Build.Tasks + $(SdkTargetFramework);net472 +- $(SdkTargetFramework) + + + +diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/Microsoft.NET.Build.Tasks.csproj b/src/Tasks/Microsoft.NET.Build.Tasks/Microsoft.NET.Build.Tasks.csproj +index 604ef43bf2..bce39c67d4 100644 +--- a/src/Tasks/Microsoft.NET.Build.Tasks/Microsoft.NET.Build.Tasks.csproj ++++ b/src/Tasks/Microsoft.NET.Build.Tasks/Microsoft.NET.Build.Tasks.csproj +@@ -13,7 +13,6 @@ + The MSBuild targets and properties for building .NET Core projects. + Library + $(SdkTargetFramework);net472 +- $(SdkTargetFramework) + annotations + +