Skip to content

Commit 5f1c1e2

Browse files
committed
Fix VS manifest version
1 parent f1e396e commit 5f1c1e2

File tree

2 files changed

+43
-25
lines changed

2 files changed

+43
-25
lines changed

src/GitExtensionsVSIX.csproj

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,23 @@
145145
</EmbeddedResource>
146146
</ItemGroup>
147147

148+
<Target Name="_PatchVsixManifest" AfterTargets="BeforeBuild" Condition="'$(APPVEYOR_BUILD_VERSION)' != ''">
149+
<PropertyGroup>
150+
<BuildVersion>$(APPVEYOR_BUILD_VERSION)</BuildVersion>
151+
</PropertyGroup>
152+
153+
<PropertyGroup>
154+
<Namespace>
155+
<Namespace Prefix="ns" Uri="http://schemas.microsoft.com/developer/vsx-schema/2011" />
156+
</Namespace>
157+
</PropertyGroup>
158+
159+
<XmlPoke XmlInputPath="source.extension.vsixmanifest"
160+
Namespaces="$(Namespace)"
161+
Query="ns:PackageManifest/ns:Metadata/ns:Identity/@Version"
162+
Value="$(BuildVersion)" />
163+
</Target>
164+
148165
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
149166
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="Exists('$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets')" />
150167

src/source.extension.vsixmanifest

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
3-
<Metadata>
4-
<Identity Publisher="GitExt Team" Version="33.33.0" Language="en-US" Id="GitExtensions..550013F4-337C-4750-8967-DDEEEC2EB497" />
5-
<DisplayName>Git Extensions</DisplayName>
6-
<Description xml:space="preserve" >Git Extensions is a graphical user interface for Git that allows you to control Git without using the command-line</Description>
7-
<MoreInfo>https://gitextensions.github.io/</MoreInfo>
8-
<License>Resources\LICENSE.md</License>
9-
<GettingStartedGuide>https://git-extensions-documentation.readthedocs.io/en/latest/</GettingStartedGuide>
10-
<Icon>Resources\git-extensions-logo-32px.png</Icon>
11-
<PreviewImage>Resources\git-extensions-logo-256px.png</PreviewImage>
12-
<Tags>Git, Git Extensions</Tags>
13-
</Metadata>
3+
<Metadata>
4+
<Identity Publisher="Git Extensions" Version="33.33.0" Language="en-US" Id="GitExtensions..550013F4-337C-4750-8967-DDEEEC2EB497" />
5+
<DisplayName>Git Extensions</DisplayName>
6+
<Description xml:space="preserve">Git Extensions is a graphical user interface for Git that allows you to control Git without using the command-line</Description>
7+
<MoreInfo>https://gitextensions.github.io/</MoreInfo>
8+
<License>Resources\LICENSE.md</License>
9+
<GettingStartedGuide>https://git-extensions-documentation.readthedocs.io/en/latest/</GettingStartedGuide>
10+
<Icon>Resources\git-extensions-logo-32px.png</Icon>
11+
<PreviewImage>Resources\git-extensions-logo-256px.png</PreviewImage>
12+
<Tags>Git, Git Extensions</Tags>
13+
</Metadata>
1414

15-
<Installation>
16-
<InstallationTarget Version="[14.0,18.0)" Id="Microsoft.VisualStudio.Community" />
17-
</Installation>
15+
<Installation>
16+
<InstallationTarget Version="[14.0,18.0)" Id="Microsoft.VisualStudio.Community" />
17+
</Installation>
1818

19-
<Dependencies>
20-
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="4.0" />
21-
<Dependency Id="Microsoft.VisualStudio.MPF.14.0" DisplayName="Visual Studio MPF 14.0" d:Source="Installed" Version="[14.0,15.0)" />
22-
</Dependencies>
19+
<Dependencies>
20+
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="4.0" />
21+
<Dependency Id="Microsoft.VisualStudio.MPF.14.0" DisplayName="Visual Studio MPF 14.0" d:Source="Installed" Version="[14.0,15.0)" />
22+
</Dependencies>
2323

24-
<Assets>
25-
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
26-
</Assets>
27-
<Prerequisites>
28-
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[14.0,)" DisplayName="Visual Studio core editor" />
29-
</Prerequisites>
30-
</PackageManifest>
24+
<Assets>
25+
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
26+
</Assets>
27+
28+
<Prerequisites>
29+
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[14.0,)" DisplayName="Visual Studio core editor" />
30+
</Prerequisites>
31+
</PackageManifest>

0 commit comments

Comments
 (0)