Skip to content

Commit

Permalink
Fix VS manifest version
Browse files Browse the repository at this point in the history
  • Loading branch information
RussKie committed Nov 28, 2020
1 parent f1e396e commit 5f1c1e2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 25 deletions.
17 changes: 17 additions & 0 deletions src/GitExtensionsVSIX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,23 @@
</EmbeddedResource>
</ItemGroup>

<Target Name="_PatchVsixManifest" AfterTargets="BeforeBuild" Condition="'$(APPVEYOR_BUILD_VERSION)' != ''">
<PropertyGroup>
<BuildVersion>$(APPVEYOR_BUILD_VERSION)</BuildVersion>
</PropertyGroup>

<PropertyGroup>
<Namespace>
<Namespace Prefix="ns" Uri="http://schemas.microsoft.com/developer/vsx-schema/2011" />
</Namespace>
</PropertyGroup>

<XmlPoke XmlInputPath="source.extension.vsixmanifest"
Namespaces="$(Namespace)"
Query="ns:PackageManifest/ns:Metadata/ns:Identity/@Version"
Value="$(BuildVersion)" />
</Target>

<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="Exists('$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets')" />

Expand Down
51 changes: 26 additions & 25 deletions src/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<Metadata>
<Identity Publisher="GitExt Team" Version="33.33.0" Language="en-US" Id="GitExtensions..550013F4-337C-4750-8967-DDEEEC2EB497" />
<DisplayName>Git Extensions</DisplayName>
<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>
<MoreInfo>https://gitextensions.github.io/</MoreInfo>
<License>Resources\LICENSE.md</License>
<GettingStartedGuide>https://git-extensions-documentation.readthedocs.io/en/latest/</GettingStartedGuide>
<Icon>Resources\git-extensions-logo-32px.png</Icon>
<PreviewImage>Resources\git-extensions-logo-256px.png</PreviewImage>
<Tags>Git, Git Extensions</Tags>
</Metadata>
<Metadata>
<Identity Publisher="Git Extensions" Version="33.33.0" Language="en-US" Id="GitExtensions..550013F4-337C-4750-8967-DDEEEC2EB497" />
<DisplayName>Git Extensions</DisplayName>
<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>
<MoreInfo>https://gitextensions.github.io/</MoreInfo>
<License>Resources\LICENSE.md</License>
<GettingStartedGuide>https://git-extensions-documentation.readthedocs.io/en/latest/</GettingStartedGuide>
<Icon>Resources\git-extensions-logo-32px.png</Icon>
<PreviewImage>Resources\git-extensions-logo-256px.png</PreviewImage>
<Tags>Git, Git Extensions</Tags>
</Metadata>

<Installation>
<InstallationTarget Version="[14.0,18.0)" Id="Microsoft.VisualStudio.Community" />
</Installation>
<Installation>
<InstallationTarget Version="[14.0,18.0)" Id="Microsoft.VisualStudio.Community" />
</Installation>

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

<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[14.0,)" DisplayName="Visual Studio core editor" />
</Prerequisites>
</PackageManifest>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>

<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[14.0,)" DisplayName="Visual Studio core editor" />
</Prerequisites>
</PackageManifest>

0 comments on commit 5f1c1e2

Please sign in to comment.