From 11f08119eb15e019cb99916819fa8d4f2e86d427 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Wed, 23 Aug 2017 14:16:33 -0300 Subject: [PATCH] Add the prerequisite Merq component explicitly The existing implicit prerequisite insertion from Merq nuget package isn't working as expected because the component ID in VS doesn't match the generated JSON file name, so instead of relying on the Merq.VisualStudio nuget package to inject the prerequisite, we just add it ourselves manually. Also fixed versioning of the nuget package for local builds with the new numbering scheme. Fixes #5383 --- .../NuGet.Packaging.VisualStudio.15.csproj | 1 - .../source.extension.vsixmanifest | 3 ++- .../NuGet.Packaging.VisualStudio.Shared.targets | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/VisualStudio/NuGet.Packaging.VisualStudio.15/NuGet.Packaging.VisualStudio.15.csproj b/src/VisualStudio/NuGet.Packaging.VisualStudio.15/NuGet.Packaging.VisualStudio.15.csproj index ba50de3..84b6dbc 100644 --- a/src/VisualStudio/NuGet.Packaging.VisualStudio.15/NuGet.Packaging.VisualStudio.15.csproj +++ b/src/VisualStudio/NuGet.Packaging.VisualStudio.15/NuGet.Packaging.VisualStudio.15.csproj @@ -50,7 +50,6 @@ - diff --git a/src/VisualStudio/NuGet.Packaging.VisualStudio.15/source.extension.vsixmanifest b/src/VisualStudio/NuGet.Packaging.VisualStudio.15/source.extension.vsixmanifest index 06117af..841ae50 100644 --- a/src/VisualStudio/NuGet.Packaging.VisualStudio.15/source.extension.vsixmanifest +++ b/src/VisualStudio/NuGet.Packaging.VisualStudio.15/source.extension.vsixmanifest @@ -1,7 +1,7 @@  - + NuGetizer-3000 NuGet Package Authoring Tools LICENSE.txt @@ -11,6 +11,7 @@ + diff --git a/src/VisualStudio/NuGet.Packaging.VisualStudio.Shared.targets b/src/VisualStudio/NuGet.Packaging.VisualStudio.Shared.targets index d0ec197..8d1a5b1 100644 --- a/src/VisualStudio/NuGet.Packaging.VisualStudio.Shared.targets +++ b/src/VisualStudio/NuGet.Packaging.VisualStudio.Shared.targets @@ -43,12 +43,12 @@ <_NuGetizerPackage Include="$(Out)\*.nupkg" /> <_CurrentNuGetizerPackage Include="@(_NuGetizerPackage)" - Condition="$([System.String]::New('%(Filename)').Replace('NuGet.Build.Packaging.', '')) == '$(Version)'" /> + Condition="$([System.String]::New('%(Filename)').Replace('NuGet.Build.Packaging.', '')) == '$(PackageVersion)'" /> @@ -66,9 +66,9 @@ Packages found were: %0a@(_NuGetizerPackage -> ' %(Filename)%(Extension)', '%0a')" /> - + - $(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch) + $(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch) @@ -105,7 +105,7 @@ Value="$(PackageVersion)"/> - @@ -113,7 +113,7 @@ - +