From d9c2f744fa0b09968f1fb4721dbdf6875ae42d8e Mon Sep 17 00:00:00 2001 From: William Godbe Date: Wed, 1 Apr 2020 14:45:39 -0700 Subject: [PATCH] Attempt to auto-publish vs.redist packages to orchestrated feed (#20211) * Attempt to auto-publish vs.redist packages to orchestrated feed * Use non-stable packageVersion for vs.redist * Fix typo * Update build/Publish.targets - should trigger a build that's more likely to succeed * Print what we're trying to publish * More debug prints * Set RedistPackageId in publishing.targets * Reference variable correctly * Remove unnecessary messages * Respond to feedback Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com> --- build/Publish.targets | 11 ++++++++++- .../Windows/GenerateNugetPackageWithMsi.ps1 | 5 +++-- .../Windows/SharedFramework/SharedFramework.wixproj | 6 +++++- .../SharedFramework/SharedFrameworkPackage.nuspec | 4 ++-- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/build/Publish.targets b/build/Publish.targets index 9c73f75d15..444c1a606f 100644 --- a/build/Publish.targets +++ b/build/Publish.targets @@ -66,6 +66,8 @@ aspnetcore-runtime-latest aspnetcore-runtime-internal-$(PackageVersion) dotnet-hosting-$(PackageVersion)-win.exe + + VS.Redist.Common.AspNetCore.SharedFramework @@ -174,6 +176,10 @@ + + + + <_MissingArtifactFile Include="@(FilesToPublish)" Condition="!Exists(%(FilesToPublish.Identity))" /> <_MissingArtifactFile Include="@(NpmPackageToPublish)" Condition="!Exists(%(NpmPackageToPublish.Identity))" /> @@ -276,6 +282,10 @@ ManifestArtifactData="NonShipping=true" Condition="'%(PackageToPublish.Category)' != 'ship'" /> + + @@ -287,7 +297,6 @@ Condition=" '%(FilesToPublish.IsDuplicateUpload)' != 'true' " /> - $(SharedFrameworkNamespaceGuid) $(RepositoryRoot)\src\Installers\Windows\SharedFramework\SharedFrameworkPackage.nuspec $(RepositoryRoot)artifacts/bin/$(Configuration)/installers/ + VS.Redist.Common.AspNetCore.SharedFramework + + $(VersionPrefix)-$(VersionSuffix) @@ -64,7 +67,8 @@ '$(PackageVersion)' ^ '$(RepositoryRoot)' ^ '$(AspNetCoreMajorVersion)' ^ - '$(AspNetCoreMinorVersion)'" /> + '$(AspNetCoreMinorVersion)' ^ + '$(SharedFrameworkRedistPackageId)'" /> diff --git a/src/Installers/Windows/SharedFramework/SharedFrameworkPackage.nuspec b/src/Installers/Windows/SharedFramework/SharedFrameworkPackage.nuspec index b5b8c43d9e..d1c1471367 100644 --- a/src/Installers/Windows/SharedFramework/SharedFrameworkPackage.nuspec +++ b/src/Installers/Windows/SharedFramework/SharedFrameworkPackage.nuspec @@ -1,9 +1,9 @@ - VS.Redist.Common.AspNetCore.SharedFramework.$ARCH$.$MAJOR$.$MINOR$ + $ID$.$ARCH$.$MAJOR$.$MINOR$ 1.0.0 - VS.Redist.Common.AspNetCore.SharedFramework.$ARCH$.$MAJOR$.$MINOR$ + $ID$.$ARCH$.$MAJOR$.$MINOR$ Microsoft Microsoft https://www.microsoft.com/net/dotnet_library_license.htm