From 3e255bb835baee8145ba71c5c01425ce4cb872d4 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Fri, 3 Mar 2023 12:28:36 -0800 Subject: [PATCH 1/2] Better trimming support + trimming fix - Allow for trimming to be set in SourceBuild.props. This enables use in repo SB legs. Includes a default set which is all netcoreapps + netstandards. - Disable trimming for top level projects in Arcade, so that we don't accidentally skip things like publishing. --- src/Microsoft.DotNet.Arcade.Sdk/tools/AfterSigning.proj | 3 +++ .../tools/AfterSolutionBuild.proj | 5 +++++ src/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj | 2 ++ src/Microsoft.DotNet.Arcade.Sdk/tools/Publish.proj | 6 ++++++ .../tools/RepositoryValidation.proj | 5 +++++ src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.proj | 6 ++++++ .../tools/SourceBuild/SourceBuildArcade.targets | 5 +++++ .../tools/SourceBuild/SourceBuildArcadeBuild.targets | 1 + 8 files changed, 33 insertions(+) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/AfterSigning.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/AfterSigning.proj index 1e8e52c6ad1..07a41ed110b 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/AfterSigning.proj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/AfterSigning.proj @@ -1,5 +1,8 @@ + + true + diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/AfterSolutionBuild.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/AfterSolutionBuild.proj index 0816ee1d2bb..fcb50a4cc09 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/AfterSolutionBuild.proj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/AfterSolutionBuild.proj @@ -1,5 +1,10 @@ + + + true + + diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj index 8c8fa7ef037..ad80d4c18cf 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj @@ -34,6 +34,8 @@ <_OriginalProjectsValue>$(Projects) + + true diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/Publish.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/Publish.proj index ae754b76748..1b6a5fe71aa 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/Publish.proj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/Publish.proj @@ -1,5 +1,11 @@ + + + + true + + + + + true + + diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.proj index c592599f24f..73466e2d59f 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.proj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.proj @@ -1,5 +1,11 @@ + + + + true + + diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcade.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcade.targets index b8a7652d6ea..b81e56c4e9d 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcade.targets +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcade.targets @@ -28,6 +28,11 @@ true true + + + <_DefaultNetFrameworkFilter>netstandard2.0%3bnetstandard2.1%3bnetcoreapp2.1%3bnet5.0%3bnet6.0%3bnet7.0%3bnet8.0 + $(_DefaultNetFrameworkFilter) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets index 00a2c48320b..3933e436b87 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets @@ -92,6 +92,7 @@ + From bc28d0de4d7a401ad1d5e271806de125986a2478 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Mon, 6 Mar 2023 12:14:52 -0800 Subject: [PATCH 2/2] Add netcoreapp3.1 --- .../tools/SourceBuild/SourceBuildArcade.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcade.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcade.targets index b81e56c4e9d..b0155aa7bdd 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcade.targets +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcade.targets @@ -31,7 +31,7 @@ - <_DefaultNetFrameworkFilter>netstandard2.0%3bnetstandard2.1%3bnetcoreapp2.1%3bnet5.0%3bnet6.0%3bnet7.0%3bnet8.0 + <_DefaultNetFrameworkFilter>netstandard2.0%3bnetstandard2.1%3bnetcoreapp2.1%3bnetcoreapp3.1%3bnet5.0%3bnet6.0%3bnet7.0%3bnet8.0 $(_DefaultNetFrameworkFilter)