Fix version shenanigans

This commit is contained in:
Ryan Nowak 2018-02-28 08:19:28 -08:00
parent f3b10bfa4c
commit 2978830a9f
2 changed files with 12 additions and 5 deletions

View File

@ -21,10 +21,14 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<!-- Following VS convention of using the VS release # as a convention for the vsix version. --> <!--
Following VS convention of using the VS release # as a convention for the vsix version.
VS needs this build number to be parsable by System.Version, so it can't have any letters.
-->
<VsixVersion>15.6</VsixVersion> <VsixVersion>15.6</VsixVersion>
<VsixVersion Condition="'$(BuildNumber)'!=''">$(VsixVersion).$(BuildNumber)</VsixVersion> <VsixVersion Condition="'$(BuildNumber)'!='' AND '$(BuildNumber)'!='t000'">$(VsixVersion).$(BuildNumber)</VsixVersion>
<VsixVersion Condition="'$(BuildNumber)'==''">$(VsixVersion).999999</VsixVersion> <VsixVersion Condition="'$(BuildNumber)'=='' OR '$(BuildNumber)'=='t000'">$(VsixVersion).999999</VsixVersion>
</PropertyGroup> </PropertyGroup>
<!-- <!--
Used by the .vsixmanifest to insert the the VSIX version based on $(VsixVersion) Used by the .vsixmanifest to insert the the VSIX version based on $(VsixVersion)

View File

@ -5,10 +5,13 @@ using Microsoft.VisualStudio.Shell;
// Add binding redirects for each assembly we ship in VS. This is required so that these assemblies show // Add binding redirects for each assembly we ship in VS. This is required so that these assemblies show
// up in the Load context, which means that we can use ServiceHub and other nice things. // up in the Load context, which means that we can use ServiceHub and other nice things.
//
// The versions here need to match what the build is producing. If you change the version numbers
// for the Blazor assemblies, this needs to change as well.
[assembly: ProvideBindingRedirection( [assembly: ProvideBindingRedirection(
AssemblyName = "Microsoft.VisualStudio.LanguageServices.Blazor", AssemblyName = "Microsoft.VisualStudio.LanguageServices.Blazor",
GenerateCodeBase = true, GenerateCodeBase = true,
PublicKeyToken = "", PublicKeyToken = "",
OldVersionLowerBound = "0.0.0.0", OldVersionLowerBound = "0.0.0.0",
OldVersionUpperBound = "1.0.0.0", OldVersionUpperBound = "0.0.5.0",
NewVersion = "1.0.0.0")] NewVersion = "0.0.5.0")]