Visual Studio 2019 安裝 Ankh SVN(此方法能夠安裝,但沒法正常使用)

1. 引言html

今天安裝了visual studio 2019企業版,想給安裝Ankh SVN,網上找了一下,發現Ankh SVN還不支持2019。可是有園友楊浪找到了這個問題的解決方案。json

原連接在這裏:Visual Studio 2019 (VS2019)正式版安裝 Ankh SVN和VisualSVN插件ide

2. 解決方法svn

    1)自行百度,下載Ankh.VS15Package.vsix;ui

    2)更改文件後綴爲.zip並解壓;spa

    3)修改extension.vsixmanifest文件:.net

  • 修改Prerequisites節點,Version="[15.0,16.0)" 修改成Version="[15.0,)"
    <Prerequisites>
        <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
      </Prerequisites>

     

  • 修改其餘節點中的Version值,Version="[15.0,16.0)" 修改成Version="[15.0,17.0)"

     經修改後的文件成了這個樣子:插件

<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011">
  <Metadata>
    <Identity Id="AnkhSVN.2.7.417f85d8-1b5c-47ee-a8ae-b58359e79899" Version="2.7.12815" Language="en-US" Publisher="AnkhSVN Team &amp; CollabNet" />
    <DisplayName>AnkhSVN - Subversion Support for Visual Studio</DisplayName>
    <Description xml:space="preserve">Open Source Subversion SCC Provider for Visual Studio 2005, 2008, 2010, 2012, 2013, 2015 and 2017.</Description>
    <MoreInfo>http://www.ankhsvn.net/</MoreInfo>
    <License>LICENSE.rtf</License>
    <ReleaseNotes>http://ankhsvn.net/releasenotes</ReleaseNotes>
    <Icon>Package.ico</Icon>
    <PreviewImage>AnkhSVN-Preview.png</PreviewImage>
  </Metadata>
  <Installation>
    <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,17.0)" />
    <InstallationTarget Version="[15.0,17.0)" Id="Microsoft.VisualStudio.Pro" />
    <InstallationTarget Version="[15.0,17.0)" Id="Microsoft.VisualStudio.Enterprise" />
    <InstallationTarget Version="[15.0,17.0)" Id="Microsoft.VisualStudio.IntegratedShell" />
  </Installation>
  <Dependencies>
    <Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="[4.5,)" />
  </Dependencies>
  <Assets>
    <Asset Type="Microsoft.VisualStudio.VsPackage" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
    <Asset Type="Microsoft.VisualStudio.VsPackage" Path="Ankh.Package.pkgdef" />
    <Asset Type="Microsoft.VisualStudio.VsPackage" Path="Ankh.WpfEditor.Package.pkgdef" />
  </Assets>
  <Prerequisites>
    <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
  </Prerequisites>
</PackageManifest>

    4)修改manifest.json,找到  Microsoft.VisualStudio.Component.CoreEditor ,將其後的「[15.0,16.0)」修改成」[15.0,)「;code

    5)  修改catalog.json,找到  Microsoft.VisualStudio.Component.CoreEditor ,將其後的「[15.0,16.0)」修改成」[15.0,)「;xml

    6)  將全部文件壓縮成.zip;

    7)修改壓縮文件的擴展名爲.visx,運行安裝;

相關文章
相關標籤/搜索