From 5bc4fd52e938a391460895404a7b65943492988e Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Fri, 8 Mar 2024 20:26:31 -0500 Subject: [PATCH] [workload-testing] Remove the hacks, and use the update task 1. remove package source mapping from `nuget.config` as it gets added at build time now 2. Manifest packages are installed with a `PackageDownload` instead of a `PackageReference`, thus it can work with `PackageType='dotnetplatform'` packages. 3. Generating a patched nuget.config for building test projects can be done using a new `PatchNuGetConfig` task, and thus we can remove the inline task. --- NuGet.config | 4 -- .../Microsoft.NET.Sdk.Aspire.csproj | 10 --- tests/Shared/Aspire.Workload.Testing.targets | 72 +++---------------- 3 files changed, 11 insertions(+), 75 deletions(-) diff --git a/NuGet.config b/NuGet.config index 35a7f2a6bc..d611b31697 100644 --- a/NuGet.config +++ b/NuGet.config @@ -22,10 +22,6 @@ - - - - diff --git a/src/Microsoft.NET.Sdk.Aspire/Microsoft.NET.Sdk.Aspire.csproj b/src/Microsoft.NET.Sdk.Aspire/Microsoft.NET.Sdk.Aspire.csproj index 02522b1603..d73e9507f2 100644 --- a/src/Microsoft.NET.Sdk.Aspire/Microsoft.NET.Sdk.Aspire.csproj +++ b/src/Microsoft.NET.Sdk.Aspire/Microsoft.NET.Sdk.Aspire.csproj @@ -5,16 +5,6 @@ $(PackageId).Manifest-$(DotNetAspireManifestVersionBand) .NET Aspire workload manifest - - - diff --git a/tests/Shared/Aspire.Workload.Testing.targets b/tests/Shared/Aspire.Workload.Testing.targets index 54045ac654..519daa6561 100644 --- a/tests/Shared/Aspire.Workload.Testing.targets +++ b/tests/Shared/Aspire.Workload.Testing.targets @@ -3,6 +3,11 @@ _GetWorkloadsToInstall;$(GetWorkloadInputsDependsOn) _GetNuGetsToBuild;$(GetNuGetsToBuildForWorkloadTestingDependsOn) + + High + + *Aspire* + <_ShippingPackagesDir>$([MSBuild]::NormalizeDirectory($(ArtifactsDir), 'packages', $(Configuration), 'Shipping')) <_GlobalJsonContent>$([System.IO.File]::ReadAllText('$(RepoRoot)global.json')) @@ -72,69 +77,14 @@ - - - - - - - - - - - - - - - - - - - + + +