Search code examples
c#svntortoisesvnvisual-studio-express

Adding TortoiseSVN Context menus to Visual Studio Express


I am currently using Visual Studio Express for C# development and need to integrate Tortoise SVN to the same as context menus for External tools.

I need the following commands to be shown there.

  1. Update to latest version

  2. Commit

  3. Cleanup

  4. Merge

  5. View History

Can this be accomplished?.

PS: Don't ask me to use Visual Studio Community, I am stuck with Express for now.

Edit: I already know how to add context menus to Visual studio express, here is the SO link for the same.

Add an Item to the visual studio folder right-click menu within AddIn

Am just unclear on the actual SVN commands.

Edit: I found the solution for the same and have pasted that as the answer, thanks to @Patrick for the guidance.


Solution

  • Thanks to @Patrick and also to this blog which shows up for a few seconds

    http://garrys-brain.blogspot.in/2007/07/tortoisesvn-and-visual-studio.html

    It is entirely possible to add TortoiseSVN commands as external tools and I have done just that using the values for each of the parameters needed for the External Tools dialogue, hopefully this will help others as well.

    https://pastebin.com/L5rREjNL

    Title   CommandLine Arguments   WorkingDir
    Commit  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:commit /path:"$(SolutionDir)" /notempfile  $(SolutionDir)
    
    Update  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:update /path:"$(SolutionDir)" /notempfile  $(SolutionDir)
    
    History c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:log /path:"$(ItemPath)" /notempfile    $(ItemDir)
    Diff    c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:diff /path:"$(ItemPath)" /notempfile   $(ItemDir)
    
    Blame   c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:blame /path:"$(ItemPath)" /notempfile  $(ItemDir)
    
    Revert  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:revert /path:"$(SolutionDir)" /notempfile  $(SolutionDir)
    
    Modifications   c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:repostatus /path:"$(SolutionDir)" /notempfile  $(SolutionDir)
    
    Edit Conflicts  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:conflicteditor /path:"$(ItemPath)" /notempfile $(ItemDir)
    
    Resolve c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:resolve /path:"$(ItemPath)" /noquestion /notempfile    $(ItemDir)
    
    Repository  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:repobrowser /path:"$(SolutionDir)" /notempfile $(SolutionDir)
    
    Project History c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:log /path:"$(SolutionDir)" /notempfile $(SolutionDir)
    
    Add Solution    c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:import /path:"$(SolutionDir)" /notempfile  $(SolutionDir)
    
    Branch/Tag  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:copy /path:"$(SolutionDir)" /notempfile    $(SolutionDir)
    
    Settings    c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:settings /path:"$(SolutionDir)" /notempfile    $(SolutionDir)