Installation of AnkhSVN Visual Studio 2019
Asked Answered
A

6

54

I can not Install AnkhSVN -Subversion Support for Visual Studio 2019,

I have tried to Install It, It says Version is Invalid for VS2019

I use VS2019 Professional

Adeline answered 5/4, 2019 at 8:51 Comment(6)
Have you tried VisualSVN for Visual Studio 2019? marketplace.visualstudio.com/…Revegetate
Thanks in that time was not given direct yetAdeline
I'm seeing problems with creating a new Subversion repository by uploading a source code solution and associated projects with Visual Studio 2017. This seems to work fine with Visual Studio 2015. Other functions such as commits, updates, browsing seem to work fine in Visual Studio 2017 however uploading a new project causes Visual Studio 2017 to hang. I see no error messages.Quaver
which version do u have of AnkhSVN subversion, is it 2019, i installed AnkhSVN2019 from @Phil Jolans in Enterprise vs2017 worked fineAdeline
@Phil Jolans, Guten Morgen, Hast du schon VS2022 probiert, viele Grüß von SchwabelandAdeline
@RockJunior Augen aufmachen! Ich habe die Situation für VS2022 in meiner Antwort (unten) bereits beschreiben.Sideband
S
75

I have made a fork of the AnkhSVN project and published a version on Visual Studio Marketplace as AnkhSVN2019.

This version targets only Visual Studio 2019.

The page on the Visual Studio Marketplace is here:
https://marketplace.visualstudio.com/items?itemName=PhilJollans.AnkhSVN2019

You can also find it by searching the Visual Studio Marketplace in Visual Studio.

The project is on GitHub here:
https://github.com/PhilJollans/AnkhSVN2019

As far as I can tell it is working correctly, but that is based on a small number of systems, and I only use a subset of the features.

Support for Visual Studio 2022

My fork of AnkhSVN does not support Visual Studio 2022, but there is a version in the GitHub repository from the original developers of AnkhSVN.

As of 4-December-2021, this version is not available in the Visual Studio Marketplace, but you can download the package from the releases page on GitHub.

As of 4-December-2021, the download link for the current version is
https://github.com/AmpScm/AnkhSVN/releases/download/v2.9.87/Ankh-VSIX-2022.zip,
but there may now be a newer version.

Sideband answered 14/12, 2019 at 13:8 Comment(9)
Thanks, i have tested and it seems to work great, Commit, View History works fineSonjasonnet
Thanks a lot. Working great. This solution should marked as answer.Merola
Thanks a lot. Actually as I can guess on the amount of recent commits on the official github, it's much more than a simple adaptation of the existing AnkhSVN project. I would like to be able to vote up it a thousand times, it should be the accepter answer !Lithopone
Doesn't work for me. So sad. Installed it, but nothing seems to happen.VS version 16.4.1Beldam
Can you first open Extensions/Manage Extensions/Installed and check that AnkhSVN2019 is really installed and not disabled. If that is OK, can you open Tools/Source Control/Plug-in Selection. You should find AnkhSVN2019 in the list of source control plug ins. You will have to select AnkhSVN2019 as the Current source control plug-in.Sideband
Great, Thanks a lot!Pressroom
I'm using VS Community 2019 Ver. 16.8.6 and it doesnt recognized the svn repo. VS prompts extension stopped respondingYippie
Great help! thanks a lot.Squamosal
You need to also set AnkhSVN as default Source control tool in visual studio go to Tools> Options > Source Control >Plug-in SelectionDakotadal
F
14

The latest AnkhSVN version is not compatible with Visual Studio 2019 (and the project, unfortunately, seems dead).

A possible solution is to edit manually the files stored in the vsix file (it's a zip file with a different extension).

The file to edit are:

  • extension.vsixmanifest
    Change the occurance of [15.0,16.0) to [15.0,17.0)
    Change the prerequisite in this way:
    <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />

  • catalog.json
    search Microsoft.VisualStudio.Component.CoreEditor and change the version to "[15.0,)"

  • manifest.json
    search Microsoft.VisualStudio.Component.CoreEditor and change the version to "[15.0,)" as the catalog.json

After these changes it's possible to install the extension in VS2019 but still open a warning shown by VS related an incompatibility of the load process (AnkhSVN use a synchronous load, VS2019 want an async load).

Farrel answered 5/4, 2019 at 10:31 Comment(11)
My Manifest has 15.0.25904.0 and <Prerequisites> <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0.25904.1,)" DisplayName="Visual Studio core editor" /> <Prerequisite Id="Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites" Version="[15.0.25904.0,)" DisplayName=".NET desktop development tools" /> </Prerequisites>Adeline
I have downloaded directly the last available version from the Visual Studio Marketplace: marketplace.visualstudio.com/… In this package the versions are 15.0 and 16.0 I have changed the files inside this archive and I'm able to install in VS2019 (with the warning about the incompatibility as I wrote in the previous post).Farrel
Yes, and from all what i saw al numbers that i have are (16.0,17.0) and i tried to Change all but result was the sameAdeline
This is very strange. If you want try to download my version: s000.tinyupload.com/index.php?file_id=99386398029505094080 This is the original version with only the change in the version of manifest and json file.Farrel
Now it is no more strange, it is working through your Installer. Thanks very muchAdeline
I managed to edit the vsix and install it, but it doesn't work at all in vs2019 version 16.1.1, get loads of crashes.Null
With vs2019 16.1.5, "Show Changes" works fine so far, but when I bring up "View History" dialog, clicking on any entry in the list would crash vs2019. :(Landsknecht
When I try to run the modified .vsix file, I always gets the error, This VSIX package is invalid because it does not contain the file extension.wsixmanifest at the root. The VSIX file may be corrupted. I have confirmed that file exists. I have tried zipping with 7-zip and Win Desktop Send to -> Compressed (zipped) folder. Any idea why this is now being flagged as an invalid archive?Coax
I tried this and it works fine to install. Later when I add a file to a project I get System.NullReferenceException. So it does not seem to work even if you get it to install.Loco
Additional changes needed in extension.vsixmanifest ` <InstallationTarget Version="[15.0,)" Id="Microsoft.VisualStudio.Pro" /> <InstallationTarget Version="[15.0,)" Id="Microsoft.VisualStudio.Enterprise" /> <InstallationTarget Version="[15.0,)" Id="Microsoft.VisualStudio.IntegratedShell" />`Coxcomb
See https://mcmap.net/q/335514/-installation-of-ankhsvn-visual-studio-2019 answer for a out of box working solution !Lithopone
W
8

Looks like it doesn't support VS2019 by default. https://ankhsvn.open.collab.net/ But you can try to update extension for VS2019.

  1. Rename vsix to zip
  2. Unzip
  3. Open extension.vsixmanifest, manifest.json and catalog.json and for Microsoft.VisualStudio.Component.CoreEditor change version to [15.0,)
  4. Open extension.vsixmanifest and also replace all [15.0,16.0) by [15.0,17.0)
  5. Zip all files
  6. Rename to vsix
Winzler answered 5/4, 2019 at 10:23 Comment(11)
this is Manifest.json has 15.0.25904.0 and another one is <Prerequisites> <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0.25904.1,)" DisplayName="Visual Studio core editor" /> <Prerequisite Id="Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites" Version="[15.0.25904.0,)" DisplayName=".NET desktop development tools" /> </Prerequisites>Adeline
@RockJunior if it doesn't have the second number - it's OK. So [15.0.25904.0,) - should workWinzler
not working yet but on dd_VSIInstaller.log this is log file i found tese numbers Microsoft.VisualStudio.Community Version : [15.0,17.0) Microsoft.VisualStudio.Pro Version : [15.0,17.0) Microsoft.VisualStudio.Enterprise Version : [15.0,17.0) Microsoft.VisualStudio.IntegratedShell Version : [15.0,17.0)Adeline
I missed that "Microsoft.VisualStudio.Component.CoreEditor" also present in catalog.json. Have you change this also? Microsoft.VisualStudio.Community etc. are targets for install should. [15.0,17.0) - it's OK for targetsWinzler
Now I found two numbers on "Microsoft.VisualStudio.Component.CoreEditor" in Manifest.json and Itried to Change from 16.0,17.0 to 15,0,17.0 but still did not work. and In Catalog.json there is no These numbers there is only "{"id":"Microsoft.VisualStudio.Platform.CallHierarchy,version"Adeline
@RockJunior No. "Microsoft.VisualStudio.Component.CoreEditor" should be changed to "[15.0.)". gigios answer is correct also and has good details about filesWinzler
Yes I did but still does not work, Do you have this VS2019 Installed? i tried a lotAdeline
@AnkhSVN Yes. I downloaded last AnkhSVN and made all changes mentioned above and extension is appeared in VS. But I don't know how to use it, so it is untested.Winzler
@JohanDanforth looks like they are still working of support VS2019Winzler
When I try to run the modified .vsix file, I always gets the error, This VSIX package is invalid because it does not contain the file extension.wsixmanifest at the root. The VSIX file may be corrupted. I have confirmed that file exists. I have tried zipping with 7-zip and Win Desktop Send to -> Compressed (zipped) folder. Any idea why this is now being flagged as an invalid archive?Coax
@Winzler yes, editor (using VS 2017) was closed before zipping.Coax
R
7

The original AnkhSVN project developed by CollabNet is now abandoned and does not support Visual Studio 2019 now (the project is inactive for more than 17 months). As an alternative, consider migrating to VisualSVN that is now completely free for use on non-domain computers (no registration required) and provides about the same functionality compared with AnkhSVN (some users consider VisualSVN to be better for their use cases).

Migrating from AnkhSVN to VisualSVN is a straightforward process. The most recent VisualSVN 7.1 and VisualSVN 6.5 releases add support for multiple working copies within a single solution, and this makes the migration practically instant and painless for almost all users. See the article KB58: Migrating from AnkhSVN to VisualSVN for instructions and the article KB7: Using Multiple Working Copies in VisualSVN if your solution projects span across multiple working copies.

Note that the workarounds suggested in the accepted answer may cause overall Visual Studio destabilization and do not make AnkhSVN compatible with Visual Studio 2019. See the comments under these answers:

BTW, according to this post, those hacky workarounds do not work anymore.

DISCLAIMER: I am a support engineer with VisualSVN Team.

Revegetate answered 29/7, 2019 at 16:29 Comment(4)
Our company prefer AnkhSVN, thats whyAdeline
Much prefer if AnkhSVN updates to use VS2019 than to pay for this. For now I'll use use TSVN.Casino
@Casino VisualSVN is completely free on non-domain computers. Did you know that?Revegetate
But with answer from @Farrel above, it is possible and i use it now for VS2019Adeline
C
6

I've just installed AnkhSVN 2.8.12824 via "Manage Extensions". It seems to work, though Visual Studio 2019 complains that it might not be compatible with a future Visual Studio update (Deprecated APIs).

See also https://ankhsvn.open.collab.net/ds/viewMessage.do?dsForumId=582&dsMessageId=647485

Possibly also https://learn.microsoft.com/en-us/visualstudio/extensibility/synchronously-autoloaded-extensions?view=vs-2019

Condensed answered 23/4, 2019 at 12:20 Comment(3)
How exactly did you install Ankh through Manage Extensions? When I search for Ankh, nothing is found.Myotome
The owner removed the program from the marketplace until he works out the async loading in the code, according to a comment from him in the github projectNull
Where did you get v2.8.12824?Coax
G
4

AnkhSVN supports Visual Studio 2019 now. Download here https://marketplace.visualstudio.com/items?itemName=simonp.AnkhSVN-SupportVS2019 [broken link]

Seems to still be active on GitHub: github.com/simonp22/AnkhSVN

The owner removed the program from the marketplace until he works out the async loading in the code, according to a comment from him in the github project https://github.com/simonp22/AnkhSVN

Greenman answered 15/5, 2019 at 3:21 Comment(6)
This version was working fine under VS2019 version 16.0, but then failed on upgrade to 16.1.0 and then was automatically disabled in 16.1.1. However, you can re-enable it via Tools>Options>Environment>Extensions and then check the box "Allow synchronous autoload". This check box might only be available in 16.1.1 and above. For more info see: devblogs.microsoft.com/visualstudio/…Chukker
Had the same issue after VS2019 16.1.0. Checked the link on the marketplace, and it is now dead. Not sure if this is going to be updated anymore.Portia
Seems to still be active on GitHub: github.com/simonp22/AnkhSVN Last commit mentions start of work on background loading.Affirmation
I get We're sorry, the page you requested cannot be found!Kadi
The owner removed the program from the marketplace until he works out the async loading in the code, according to a comment from him in the github projectNull
I've not had any issues with AnkhSVN with VS synchronous autoload enabled. However, it seems MS is pushing extension devs to upgrade to async. As Johan Danforth notes, the dev says, "I’ve taken it off the marketplace whilst I figure out how to get the A-synchronous loading to work. Fairly new to this project as it was abandoned by the old developers" Link: github.com/simonp22/AnkhSVN/issues/9Chukker

© 2022 - 2024 — McMap. All rights reserved.