Skip to content

Commit cd97f80

Browse files
committed
Fix VSIX version
1 parent 8c200a0 commit cd97f80

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/Components/Blazor/BlazorExtension/src/Microsoft.VisualStudio.BlazorExtension.csproj

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<PropertyGroup>
4-
<IsProductPackage>true</IsProductPackage>
5-
<IsPackable>false</IsPackable>
6-
<IsTestProject>false</IsTestProject>
7-
<AddImplicitReferences>false</AddImplicitReferences>
8-
</PropertyGroup>
93
<PropertyGroup>
104
<MinimumVisualStudioVersion>16.0</MinimumVisualStudioVersion>
115
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
@@ -16,7 +10,7 @@
1610
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
1711
<!-- Other projects should not reference this assembly. It is only meaning to be used in Visual Studio. -->
1812
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
19-
<IsProductPackage>true</IsProductPackage>
13+
<IsShippingPackage>true</IsShippingPackage>
2014
<IsPackable>false</IsPackable>
2115
<EnableSourceLink>false</EnableSourceLink>
2216
<GenerateSourceLinkFile>false</GenerateSourceLinkFile>
@@ -35,17 +29,19 @@
3529
<!--
3630
Following VS convention of using the VS release # as a convention for the vsix version.
3731
38-
VS needs this build number to be parsable by System.Version, so it can't have any letters.
32+
VS needs this build number to be parsable by System.Version, so it can't have any letters or a - which
33+
is used by our build system.
3934
-->
40-
<VsixVersion>16.0.0</VsixVersion>
41-
<VsixVersion Condition="'$(BuildNumber)'!='' AND '$(BuildNumber)'!='t000'">$(VsixVersion).$(BuildNumber)</VsixVersion>
42-
<VsixVersion Condition="'$(BuildNumber)'=='' AND '$(CI)'!='true'">$(VsixVersion).999999</VsixVersion>
43-
<VsixVersion Condition="'$(BuildNumber)'=='' AND '$(CI)'=='true'">$(VsixVersion).ERROR-MISSING_BUILD_NUMBER</VsixVersion>
35+
<VsixVersionPrefix>16.0</VsixVersionPrefix>
36+
<VsixVersionSuffix Condition="'$(BuildNumberSuffix)'=='t000'">424242.424242</VsixVersionSuffix>
37+
<VsixVersionSuffix Condition="'$(VsixVersionSuffix)'==''">$(BuildNumberSuffix.Replace('-', '.'))</VsixVersionSuffix>
38+
<VsixVersion>$(VsixVersionPrefix).$(VsixVersionSuffix)</VsixVersion>
4439
</PropertyGroup>
4540
<!--
4641
Used by the .vsixmanifest to insert the the VSIX version based on $(VsixVersion)
4742
-->
4843
<Target Name="GetBuildVersion" Outputs="$(VsixVersion)" />
44+
4945
<PropertyGroup>
5046
<!-- Use the same experimental hive as Roslyn and Razor. This makes it easy to mix private builds. -->
5147
<StartAction>Program</StartAction>

0 commit comments

Comments
 (0)