From 49444f300cb40e17f7ae72ff03c2b56a57775518 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Thu, 7 Apr 2022 08:12:37 -0500 Subject: [PATCH] Build aspnetcore project templates in source-build (#13459) --- .../Arcade/tools/TextOnlyPackages.csproj | 4 - ...lease-6.0-Build-ProjectTemplates-in-.patch | 113 ++++++++++++++++++ 2 files changed, 113 insertions(+), 4 deletions(-) create mode 100644 src/SourceBuild/tarball/patches/aspnetcore/0001-Revert-Revert-release-6.0-Build-ProjectTemplates-in-.patch diff --git a/src/SourceBuild/Arcade/tools/TextOnlyPackages.csproj b/src/SourceBuild/Arcade/tools/TextOnlyPackages.csproj index 50bf22938..85c4f7ae2 100644 --- a/src/SourceBuild/Arcade/tools/TextOnlyPackages.csproj +++ b/src/SourceBuild/Arcade/tools/TextOnlyPackages.csproj @@ -11,10 +11,6 @@ should be added to source-build-reference-packages. --> - - - - diff --git a/src/SourceBuild/tarball/patches/aspnetcore/0001-Revert-Revert-release-6.0-Build-ProjectTemplates-in-.patch b/src/SourceBuild/tarball/patches/aspnetcore/0001-Revert-Revert-release-6.0-Build-ProjectTemplates-in-.patch new file mode 100644 index 000000000..7ada1a116 --- /dev/null +++ b/src/SourceBuild/tarball/patches/aspnetcore/0001-Revert-Revert-release-6.0-Build-ProjectTemplates-in-.patch @@ -0,0 +1,113 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: William Godbe +Date: Wed, 23 Mar 2022 09:11:11 -0700 +Subject: [PATCH] Revert "Revert "[release/6.0] Build ProjectTemplates in + Source-Build (#40650)" (#40805)" + +This reverts commit a351c437ac7bc9f9be96de51832608438a7a37df. +--- + Directory.Build.props | 3 +++ + Directory.Build.targets | 9 +++++++-- + .../src/Microsoft.Authentication.WebAssembly.Msal.csproj | 9 ++++++++- + ...pNetCore.Components.WebAssembly.Authentication.csproj | 9 ++++++++- + 4 files changed, 26 insertions(+), 4 deletions(-) + +diff --git a/Directory.Build.props b/Directory.Build.props +index 8f0ac59422..721f099a77 100644 +--- a/Directory.Build.props ++++ b/Directory.Build.props +@@ -30,6 +30,9 @@ + $(MSBuildProjectName.EndsWith('.Test')) OR + $(MSBuildProjectName.EndsWith('.FunctionalTest')) ) ">true + true ++ true + true + true + true ++ Condition="'$(ExcludeFromSourceBuild)' == '' and ++ '$(DotNetBuildFromSource)' == 'true' and ++ '$(IsAspNetCoreApp)' != 'true' and ++ '$(MSBuildProjectName)' != '$(TargetingPackName)' and ++ '$(IsAnalyzersProject)' != 'true' and ++ '$(IsProjectTemplateProject)' != 'true'">true + + +diff --git a/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj b/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj +index 8ae5d1c43d..8e0f53957e 100644 +--- a/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj ++++ b/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj +@@ -1,6 +1,6 @@ +  + +- ++ + + + $(DefaultNetCoreTargetFramework) +@@ -25,6 +25,7 @@ + + $(MSBuildThisFileDirectory)Interop\ + ++ CheckForSourceBuild; + CompileInterop; + IncludeCompileInteropOutput; + $(ResolveStaticWebAssetsInputsDependsOn) +@@ -91,5 +92,11 @@ + + + ++ ++ ++ ++ ++ ++ + + +diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj b/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj +index 8d6a000d74..35c79a73eb 100644 +--- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj ++++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj +@@ -1,6 +1,6 @@ + + +- ++ + + + $(DefaultNetCoreTargetFramework) +@@ -26,6 +26,7 @@ + + $(MSBuildThisFileDirectory)Interop\ + ++ CheckForSourceBuild; + CompileInterop; + IncludeCompileInteropOutput; + $(ResolveStaticWebAssetsInputsDependsOn) +@@ -93,4 +94,10 @@ + + + ++ ++ ++ ++ ++ ++ +