Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 777898a

Browse files
kzuadalon
authored andcommitted
Always build the right version of the VSIX
Previously, building a different version on every commit could cause VS to sometimes fail to deploy. However, building always the same version # makes it imposible to install the VSIX manually since you must manually uninstall (and close/reopen VS) before installing, since Willow won't allow this and there's no easy way to force it to do so. So this makes the dev process more straightforward.
1 parent ce594b7 commit 777898a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/VisualStudio/NuGet.Packaging.VisualStudio/NuGet.Packaging.VisualStudio.targets

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131

3232
<Target Name="GetVersion" DependsOnTargets="GitVersion" Returns="$(Version)">
3333
<PropertyGroup>
34-
<Version Condition=" '$(Configuration)' == 'Release' ">$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)</Version>
35-
<Version Condition=" '$(Configuration)' != 'Release' ">1.0.0</Version>
34+
<Version>$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)</Version>
3635
</PropertyGroup>
3736
</Target>
3837

0 commit comments

Comments
 (0)