From 29c45cf15014658d6fd0eb5da4e8e7204403e768 Mon Sep 17 00:00:00 2001 From: Epsitha Ananth Date: Tue, 7 Jun 2022 16:32:39 -0700 Subject: [PATCH 01/11] test --- .../VisualStudio.InsertionManifests.targets | 20 +-------- .../tools/VisualStudio.SetupPackage.vsmanproj | 44 +++++++++++++------ 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.InsertionManifests.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.InsertionManifests.targets index 4d5ffdd8501..9513ac49d28 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.InsertionManifests.targets +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.InsertionManifests.targets @@ -11,23 +11,6 @@ false - - - - - - - - - - - - - - + - - <_StubLineSplit Include="@(_StubLine)" - Name="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[0])" - Version="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[1])" /> - + <_VsixFileInfo Include="@(_StubLine)" + Name="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[0])" + Version="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[1])" /> + - <_VsixVersion Include="%(_StubLineSplit.Version)" Name="%(_StubLineSplit.Name)" /> + <_VsixVersion Include="%(_VsixFileInfo.Version)" Name="%(_VsixFileInfo.Name)" /> @@ -77,7 +71,31 @@ + + + + + + + + + + + + + @(_VsixVersionNoDuplicates) @(_VsixVersionNoDuplicates->'%(Name)') From 76db1a669df47af6cfd299ee862c9d1925fcf7f3 Mon Sep 17 00:00:00 2001 From: Epsitha Ananth Date: Wed, 8 Jun 2022 11:38:31 -0700 Subject: [PATCH 02/11] Retry --- .../tools/VisualStudio.SetupPackage.vsmanproj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj index 06d624b04aa..9d9cc03c031 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj @@ -75,17 +75,17 @@ - + - + From 2b1c601becbbb0b2a5a116a71e8e50b3d08544ea Mon Sep 17 00:00:00 2001 From: Epsitha Ananth Date: Wed, 8 Jun 2022 11:40:38 -0700 Subject: [PATCH 03/11] test 2 --- .../tools/VisualStudio.SetupPackage.vsmanproj | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj index 9d9cc03c031..d46188ec2bc 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj @@ -74,18 +74,18 @@ - + - + From 8b3d360c9229cdf826be03d0833c5fa597be1ee2 Mon Sep 17 00:00:00 2001 From: Epsitha Ananth Date: Wed, 8 Jun 2022 14:18:07 -0700 Subject: [PATCH 04/11] test --- .../tools/VisualStudio.SetupPackage.vsmanproj | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj index d46188ec2bc..22ceb3b91ff 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj @@ -74,18 +74,18 @@ - + - + From ac896df25dad8d24fe85da36341e6a764153f05e Mon Sep 17 00:00:00 2001 From: Epsitha Ananth Date: Wed, 8 Jun 2022 16:35:47 -0700 Subject: [PATCH 05/11] test --- .../tools/VisualStudio.SetupPackage.vsmanproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj index 22ceb3b91ff..d8aff662bdf 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj @@ -81,7 +81,7 @@ From 61a1301b63247f3dc9d2646f6b5c75f64d906391 Mon Sep 17 00:00:00 2001 From: Epsitha Ananth Date: Wed, 8 Jun 2022 19:32:48 -0700 Subject: [PATCH 06/11] test --- .../tools/VisualStudio.SetupPackage.vsmanproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj index d8aff662bdf..54ce25e7c3f 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj @@ -81,7 +81,7 @@ From 8ea8012f8846c97ea7c9f593345f358d134e7051 Mon Sep 17 00:00:00 2001 From: Epsitha Ananth Date: Thu, 9 Jun 2022 10:28:09 -0700 Subject: [PATCH 07/11] update --- .../tools/VisualStudio.SetupPackage.vsmanproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj index 54ce25e7c3f..4fa7358d76d 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj @@ -74,14 +74,14 @@ From ffc0d14ca46d045fce695aa50832aa48df7d727b Mon Sep 17 00:00:00 2001 From: Epsitha Ananth Date: Thu, 9 Jun 2022 15:24:17 -0700 Subject: [PATCH 08/11] test --- .../tools/VisualStudio.SetupPackage.vsmanproj | 88 +++++++++---------- .../tools/VisualStudio.VsixBuild.targets | 2 +- 2 files changed, 44 insertions(+), 46 deletions(-) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj index 4fa7358d76d..709736b8ba2 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj @@ -12,6 +12,8 @@ "Products/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName)/$(Build.BuildNumber)" The manifest will be published with URI https://vsdrop.corp.microsoft.com/file/v1/$(VisualStudioDropName) + DotNetTool Path to dotnet.exe. + ManifestTool Path to Microsoft.ManifestTool.dll --> @@ -30,8 +32,6 @@ $(ComponentName) $(SetupOutputPath) $(ComponentIntermediateOutputPath) - $(ArtifactsDir) - $(GenerateSbom) https://vsdrop.corp.microsoft.com/file/v1/$(VisualStudioDropName)%3B @@ -42,68 +42,66 @@ <_PackageStubFiles Include="$(ComponentIntermediateOutputPath)*.stub"/> - - - - - - - + + + - <_VsixFileInfo Include="@(_StubLine)" - Name="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[0])" - Version="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[1])" /> - + <_ParsedLine Include="@(_StubLine)" + VsixId="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[0])" + VsixFileName="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[1])" + VsixVersion="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[2])" /> + + <_VsixFileInfo Include="@(_ParsedLine->'%(VsixFileName)')"> + $(SetupOutputPath)%(VsixId).json + $(SetupOutputPath)%(VsixFileName) + $(ComponentIntermediateOutputPath)%(VsixFileName)\unpack + $(ComponentIntermediateOutputPath)%(VsixFileName)\sbom + $(ComponentIntermediateOutputPath)%(VsixFileName)\sbom\spdx_2.2\manifest.spdx.json + + - <_VsixVersion Include="%(_VsixFileInfo.Version)" Name="%(_VsixFileInfo.Name)" /> + <_VsixVersion Include="%(_VsixFileInfo.VsixVersion)" VsixFileName="%(_VsixFileInfo.Identity)" /> - + - - - - - - - - - - - - - @(_VsixVersionNoDuplicates) - @(_VsixVersionNoDuplicates->'%(Name)') - - - $(ArtifactsDir)sbom\$(ManifestVsixName.Substring(0, $(ManifestVsixName.LastIndexOf('.'))))\spdx_2.2\manifest.spdx.json - - + + + + + + + + + + + + + + + diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.VsixBuild.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.VsixBuild.targets index 7f1b378b4a1..2d8421792d2 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.VsixBuild.targets +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.VsixBuild.targets @@ -115,7 +115,7 @@ - + From 3998fc6485666a308d4b1d0bacb3db17e58a22e0 Mon Sep 17 00:00:00 2001 From: Epsitha Ananth Date: Thu, 9 Jun 2022 16:04:40 -0700 Subject: [PATCH 09/11] Update --- .../tools/VisualStudio.InsertionManifests.targets | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.InsertionManifests.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.InsertionManifests.targets index 9513ac49d28..48ed82550c9 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.InsertionManifests.targets +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.InsertionManifests.targets @@ -4,13 +4,7 @@ <_StubFiles Include="$(VisualStudioSetupIntermediateOutputPath)**\*.stub"/> <_StubDirs Include="@(_StubFiles->'%(RecursiveDir)')"/> - - - false - - + <_ParsedLine Include="@(_StubLine)" VsixId="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[0])" VsixFileName="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[1])" VsixVersion="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[2])" /> - + <_VsixFileInfo Include="@(_ParsedLine->'%(VsixFileName)')"> $(SetupOutputPath)%(VsixId).json $(SetupOutputPath)%(VsixFileName) @@ -95,9 +95,9 @@ - + - + From 3f03acb1ccaf958a0fe0b87ce78025c2ae94a52c Mon Sep 17 00:00:00 2001 From: Epsitha Ananth Date: Wed, 15 Jun 2022 12:38:16 -0700 Subject: [PATCH 11/11] Review comments --- .../tools/VisualStudio.SetupPackage.vsmanproj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj index dca37ce72c1..d1b1695e634 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.SetupPackage.vsmanproj @@ -51,6 +51,10 @@ + <_ParsedLine Include="@(_StubLine)" VsixId="$([MSBuild]::ValueOrDefault('%(_StubLine.Identity)', '').Split('/')[0])" @@ -79,7 +83,7 @@ We require that all VSIXes included in a single VS insertion component have the same version. This version will be set to ManifestBuildVersion. --> -