From 3ee7058ef01bf5cb70c783d869773006be0ae3b5 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Thu, 6 Aug 2020 13:11:38 -0700 Subject: [PATCH] Remove requirements for VS 16.7 - use SignalR.Npm.FunctionalTests.npmproj to get non-stable version - not Microsoft.AspNetCore.DeveloperCertificates.XPlat.csproj (avoid C# and F# projects) - add `_GetPackageVersionInfo` target to all `*.npmproj` projects - make `_GetPackageVersionInfo` target work when `yarn` is not installed - switch codesign-xplat.yml to use `dotnet msbuild` - above change also fixes Code-sign jobs but they're slightly faster using `dotnet msbuild` --- .azure/pipelines/jobs/codesign-xplat.yml | 1 + eng/Publishing.props | 12 +++++++----- eng/targets/Npm.Common.targets | 15 ++++++++++++++- eng/targets/Packaging.targets | 2 +- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/.azure/pipelines/jobs/codesign-xplat.yml b/.azure/pipelines/jobs/codesign-xplat.yml index d65c9a5982..8d372ce2e4 100644 --- a/.azure/pipelines/jobs/codesign-xplat.yml +++ b/.azure/pipelines/jobs/codesign-xplat.yml @@ -31,6 +31,7 @@ jobs: - powershell: .\eng\common\build.ps1 -ci -nobl + -msbuildEngine dotnet -restore -sign -publish diff --git a/eng/Publishing.props b/eng/Publishing.props index 2c13cb29bf..6525220505 100644 --- a/eng/Publishing.props +++ b/eng/Publishing.props @@ -31,12 +31,14 @@ - - diff --git a/eng/targets/Npm.Common.targets b/eng/targets/Npm.Common.targets index 10ff37ab61..696d23402b 100644 --- a/eng/targets/Npm.Common.targets +++ b/eng/targets/Npm.Common.targets @@ -29,7 +29,7 @@ - + @@ -115,6 +115,19 @@ + + + + <_ProjectPathWithVersion Include="$(MSBuildProjectFullPath)"> + $(PackageId) + $(PackageVersionForPackageVersionInfo) + $(VersionSuffix) + + $(PackageId.Replace('.',''))PackageVersion + + + + diff --git a/eng/targets/Packaging.targets b/eng/targets/Packaging.targets index ea8dabdb46..d50e9b3064 100644 --- a/eng/targets/Packaging.targets +++ b/eng/targets/Packaging.targets @@ -7,7 +7,7 @@ See $(RepoRoot)eng\tools\BaselineGenerator\README.md for instructions on updating this baseline." /> - +