forked from kdfrie/SpecFlow.VisualStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get extension version via GitVersion
- Loading branch information
Andreas Willich
committed
Dec 9, 2016
1 parent
4da2e25
commit 8e4b6c0
Showing
7 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0"> | ||
|
||
<Target Name="BeforeBuild"> | ||
<Copy SourceFiles="$(VisualStudioVersion).source.extension.vsixmanifest" DestinationFiles="source.extension.vsixmanifest" /> | ||
|
||
<XmlPoke Condition="'$(VersionNumber)' != ''" XmlInputPath="source.extension.vsixmanifest" Namespaces="<Namespace Prefix='d' Uri='http://schemas.microsoft.com/developer/vsx-schema-design/2011' /><Namespace Prefix='x' Uri='http://schemas.microsoft.com/developer/vsx-schema/2011' />" Query="//x:PackageManifest/x:Metadata/x:Identity/@Version" Value="$(VersionNumber)" /> | ||
|
||
|
||
|
||
|
||
|
||
<Target Name="BeforeBuild"> | ||
<CallTarget Targets="GetVersion" /> | ||
<CallTarget Targets="UpdateVSIXManifest" /> | ||
</Target> | ||
|
||
|
||
<Target Name="UpdateVSIXManifest"> | ||
<PropertyGroup> | ||
<VersionNumber>$(GitVersion_Major).$(GitVersion_Minor).$(GitVersion_Patch)</VersionNumber> | ||
</PropertyGroup> | ||
|
||
|
||
<Copy SourceFiles="$(VisualStudioVersion).source.extension.vsixmanifest" DestinationFiles="source.extension.vsixmanifest" /> | ||
|
||
<XmlPoke Condition="'$(VersionNumber)' != ''" XmlInputPath="source.extension.vsixmanifest" Namespaces="<Namespace Prefix='d' Uri='http://schemas.microsoft.com/developer/vsx-schema-design/2011' /><Namespace Prefix='x' Uri='http://schemas.microsoft.com/developer/vsx-schema/2011' />" Query="//x:PackageManifest/x:Metadata/x:Identity/@Version" Value="$(VersionNumber)" /> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters