From 047d012cc5f12aa77d034a4b0d888e72a3421f24 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Tue, 16 May 2023 21:57:42 +0200 Subject: [PATCH 1/2] Don't bundle NuGet assemblies in NETCoreApp tasks NuGet assemblies are alread bundled into the SDK and therefore don't need to be included in .NETCoreApp msbuild task packages. They need to be kept on .NET Framework which doesn't bundle NuGet along MSBuild. Also fix a version package references using an incorrect NuGet version property. --- eng/BuildTask.targets | 54 +++++++++++++------ eng/Versions.props | 3 ++ .../src/Microsoft.DotNet.ApiCompat.csproj | 4 +- ...rosoft.DotNet.Build.Tasks.Packaging.csproj | 4 +- ....DotNet.Build.Tasks.Workloads.Tests.csproj | 5 ++ ...osoft.DotNet.Deployment.Tasks.Links.csproj | 2 +- .../Microsoft.DotNet.GenFacades.csproj | 4 +- .../Microsoft.DotNet.NuGetRepack.Tasks.csproj | 2 +- .../Microsoft.DotNet.NuGetRepack.Tests.csproj | 2 +- ...crosoft.DotNet.PackageTesting.Tests.csproj | 7 ++- .../Microsoft.DotNet.PackageTesting.csproj | 4 +- .../Microsoft.DotNet.RemoteExecutor.csproj | 4 +- .../Microsoft.DotNet.SourceBuild.Tasks.csproj | 4 +- ...soft.DotNet.SourceBuild.Tasks.Tests.csproj | 2 +- ...oft.DotNet.VersionTools.Tasks.Tests.csproj | 2 +- ...Microsoft.DotNet.XUnitConsoleRunner.csproj | 25 +++++++-- 16 files changed, 90 insertions(+), 38 deletions(-) diff --git a/eng/BuildTask.targets b/eng/BuildTask.targets index 5096746bb46..630e3a6493e 100644 --- a/eng/BuildTask.targets +++ b/eng/BuildTask.targets @@ -1,13 +1,15 @@ + false true true - true true tools + true + $(TargetsForTfmSpecificContentInPackage);_AddBuildOutputToPackageCore;_AddBuildOutputToPackageDesktop - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true runtime - - true - - + - + diff --git a/eng/Versions.props b/eng/Versions.props index 49cd5f315df..39df7cd0158 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -33,8 +33,10 @@ 2.0.3 + 6.2.2 6.2.2 6.2.2 + 6.2.2 6.2.2 4.4.0 @@ -94,6 +96,7 @@ 4.53.0 5.8.4 + 1.0.5 1.3.2 1.3.2 1.0.0-v3.14.0.5722 diff --git a/src/Microsoft.DotNet.ApiCompat/src/Microsoft.DotNet.ApiCompat.csproj b/src/Microsoft.DotNet.ApiCompat/src/Microsoft.DotNet.ApiCompat.csproj index dce6456054b..9b894932fe2 100644 --- a/src/Microsoft.DotNet.ApiCompat/src/Microsoft.DotNet.ApiCompat.csproj +++ b/src/Microsoft.DotNet.ApiCompat/src/Microsoft.DotNet.ApiCompat.csproj @@ -2,12 +2,14 @@ $(NetCurrent);$(NetFrameworkToolCurrent) - Exe true true $(NoWarn);0436 Major Microsoft.DotNet.ApiCompat.Core\**\* + + Exe + true diff --git a/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj b/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj index a639fe52157..8f0ed7b134e 100644 --- a/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj +++ b/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj @@ -49,9 +49,9 @@ - + - + diff --git a/src/Microsoft.DotNet.Build.Tasks.Workloads.Tests/Microsoft.DotNet.Build.Tasks.Workloads.Tests.csproj b/src/Microsoft.DotNet.Build.Tasks.Workloads.Tests/Microsoft.DotNet.Build.Tasks.Workloads.Tests.csproj index b7884eea17a..2ee1fa78291 100644 --- a/src/Microsoft.DotNet.Build.Tasks.Workloads.Tests/Microsoft.DotNet.Build.Tasks.Workloads.Tests.csproj +++ b/src/Microsoft.DotNet.Build.Tasks.Workloads.Tests/Microsoft.DotNet.Build.Tasks.Workloads.Tests.csproj @@ -15,6 +15,11 @@ + + + + + diff --git a/src/Microsoft.DotNet.Deployment.Tasks.Links/Microsoft.DotNet.Deployment.Tasks.Links.csproj b/src/Microsoft.DotNet.Deployment.Tasks.Links/Microsoft.DotNet.Deployment.Tasks.Links.csproj index da073fe8c0b..ac841dc79bf 100644 --- a/src/Microsoft.DotNet.Deployment.Tasks.Links/Microsoft.DotNet.Deployment.Tasks.Links.csproj +++ b/src/Microsoft.DotNet.Deployment.Tasks.Links/Microsoft.DotNet.Deployment.Tasks.Links.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj b/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj index 3ef364cd3a8..9cf0fa62cb2 100644 --- a/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj +++ b/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/src/Microsoft.DotNet.NuGetRepack/tasks/Microsoft.DotNet.NuGetRepack.Tasks.csproj b/src/Microsoft.DotNet.NuGetRepack/tasks/Microsoft.DotNet.NuGetRepack.Tasks.csproj index da34b308fd6..452d65e8fbc 100644 --- a/src/Microsoft.DotNet.NuGetRepack/tasks/Microsoft.DotNet.NuGetRepack.Tasks.csproj +++ b/src/Microsoft.DotNet.NuGetRepack/tasks/Microsoft.DotNet.NuGetRepack.Tasks.csproj @@ -10,8 +10,8 @@ - + diff --git a/src/Microsoft.DotNet.NuGetRepack/tests/Microsoft.DotNet.NuGetRepack.Tests.csproj b/src/Microsoft.DotNet.NuGetRepack/tests/Microsoft.DotNet.NuGetRepack.Tests.csproj index 822995a085f..8a8901e6ae7 100644 --- a/src/Microsoft.DotNet.NuGetRepack/tests/Microsoft.DotNet.NuGetRepack.Tests.csproj +++ b/src/Microsoft.DotNet.NuGetRepack/tests/Microsoft.DotNet.NuGetRepack.Tests.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/Microsoft.DotNet.PackageTesting.Tests/Microsoft.DotNet.PackageTesting.Tests.csproj b/src/Microsoft.DotNet.PackageTesting.Tests/Microsoft.DotNet.PackageTesting.Tests.csproj index f2bfdac2862..73baeadfcbf 100644 --- a/src/Microsoft.DotNet.PackageTesting.Tests/Microsoft.DotNet.PackageTesting.Tests.csproj +++ b/src/Microsoft.DotNet.PackageTesting.Tests/Microsoft.DotNet.PackageTesting.Tests.csproj @@ -6,7 +6,12 @@ - + + + + + + diff --git a/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj b/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj index 3c5a8e0613e..a5396fa6ac6 100644 --- a/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj +++ b/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor.csproj b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor.csproj index 96fe55924bd..369b96d4405 100644 --- a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor.csproj +++ b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor.csproj @@ -2,7 +2,7 @@ $(NetCurrent);$(NetFrameworkMinimum) - + Exe This package provides support for running tests out-of-process. true @@ -12,7 +12,7 @@ - + diff --git a/src/Microsoft.DotNet.SourceBuild/tasks/Microsoft.DotNet.SourceBuild.Tasks.csproj b/src/Microsoft.DotNet.SourceBuild/tasks/Microsoft.DotNet.SourceBuild.Tasks.csproj index 7ff2931f23d..6ecf44a962a 100644 --- a/src/Microsoft.DotNet.SourceBuild/tasks/Microsoft.DotNet.SourceBuild.Tasks.csproj +++ b/src/Microsoft.DotNet.SourceBuild/tasks/Microsoft.DotNet.SourceBuild.Tasks.csproj @@ -11,9 +11,9 @@ - + - + diff --git a/src/Microsoft.DotNet.SourceBuild/tests/Microsoft.DotNet.SourceBuild.Tasks.Tests.csproj b/src/Microsoft.DotNet.SourceBuild/tests/Microsoft.DotNet.SourceBuild.Tasks.Tests.csproj index 035561aef62..2a4e00dd4fc 100644 --- a/src/Microsoft.DotNet.SourceBuild/tests/Microsoft.DotNet.SourceBuild.Tasks.Tests.csproj +++ b/src/Microsoft.DotNet.SourceBuild/tests/Microsoft.DotNet.SourceBuild.Tasks.Tests.csproj @@ -13,7 +13,7 @@ - + diff --git a/src/Microsoft.DotNet.VersionTools.Tasks.Tests/Microsoft.DotNet.VersionTools.Tasks.Tests.csproj b/src/Microsoft.DotNet.VersionTools.Tasks.Tests/Microsoft.DotNet.VersionTools.Tasks.Tests.csproj index 60394fe6fd7..0cbb2b0b149 100644 --- a/src/Microsoft.DotNet.VersionTools.Tasks.Tests/Microsoft.DotNet.VersionTools.Tasks.Tests.csproj +++ b/src/Microsoft.DotNet.VersionTools.Tasks.Tests/Microsoft.DotNet.VersionTools.Tasks.Tests.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/Microsoft.DotNet.XUnitConsoleRunner/src/Microsoft.DotNet.XUnitConsoleRunner.csproj b/src/Microsoft.DotNet.XUnitConsoleRunner/src/Microsoft.DotNet.XUnitConsoleRunner.csproj index ace8ccc6641..c368b084eb0 100644 --- a/src/Microsoft.DotNet.XUnitConsoleRunner/src/Microsoft.DotNet.XUnitConsoleRunner.csproj +++ b/src/Microsoft.DotNet.XUnitConsoleRunner/src/Microsoft.DotNet.XUnitConsoleRunner.csproj @@ -2,17 +2,26 @@ $(NetCurrent) - Microsoft.DotNet.XUnitConsoleRunner + Exe xunit.console true - Exe Xunit.ConsoleClient + Major + true true + Microsoft.DotNet.XUnitConsoleRunner 2.5.1 - true - Major + true + false + $(TargetsForTfmSpecificContentInPackage);_AddBuildOutputToPackage + + + + + + @@ -34,6 +43,12 @@ - + + + + + + From bfc324f2a21423681d861c3b8c2535412298d3be Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Fri, 19 May 2023 14:50:46 +0200 Subject: [PATCH 2/2] Fix Helix.Sdk tests --- .../Microsoft.DotNet.Helix.Sdk.Tests.csproj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Microsoft.DotNet.Helix/Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests.csproj b/src/Microsoft.DotNet.Helix/Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests.csproj index 6a4e5f24a2b..3824585e38f 100644 --- a/src/Microsoft.DotNet.Helix/Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests.csproj +++ b/src/Microsoft.DotNet.Helix/Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests.csproj @@ -12,6 +12,11 @@ + + + + +