My blog has moved!

Please visit
http://blog.programmerslog.com
and update your bookmarks.

08 November 2006

Visual Studio 2005 and TortoiseSVN Subversion Integration - Update

See the update here.

Hi there everyone,

Here is an update to the TortoiseSVN integration into Visual Studio 2005. This update is a fairly major change since this will only have the changes to external tools, menus and toolbars. This means when you import these settings you get a new menu at the top of the screen (with icons), a new toolbar with proper TortoiseSVN icons, and context menus for solutions and files.

You can download the new settings file here (it is 9k in size compressed). All you need to do is go to your Tools menu and choose "Import and Export Settings" and follow the instructions. Ensure the tick box for which settings to import are all ticked.

Here are the original posts from the Subversion integration (and old files are still available).


DOWNLOAD SETTINGS FILE

Edit: Now there is a yet another update - this is now 7k. This makes a minimum of changes to your IDE as humanly (or inhumanly) possible. There is still a deficiency in the .vssettings that messes up the build toolbar comboboxes, but this seems unfixable in the current format.

Oh, and don't forget to leave some comments as to whether this new stuff is all working for you (along with the new "Add Solution To Repository" functionality.

17 comments:

Jordan Elver said...

Hi,
I've imported the settings and everything seems to be ok, but toolbar is greyed out and the menus don't appear. What am I doing wrong?

Thanks for working on this :)

Cheers, Jordan

Garry Bodsworth said...

They are external tools, so if the executable is not in the place it expects then it is possible that it can't find it. Is it also disabled on the external tools menu?

The settings make the assumption TortoiseSVN is in the default installation location. If this is the case then do a search and replace on the settings file for:c:\\program files\\TortoiseSVN\\bin\\tortoiseproc.exe
And replace it with the location that yours is installed (keeping the double slashes).

If that is not the case then try reimporting the settings as VS2005 has this wonderful knack of getting confused when loading settings.

Garry

Jordan Elver said...

Weird. When importing the settings file again, I selected the "External Tools List" checkbox and now everything shows up ok. Thanks :)

Garry Bodsworth said...

No problems, glad it works for you now. Just out of interest are you using Professional or Express?

Thanks,

Garry

Jordan Elver said...

I'm using professional.

brian.gullo said...

How do i implement the svn checkout functionality.

brian.gullo said...

I keep getting "is not working copy" error. I'm using vs pro 2005. How to i get a project checked out?

malks said...

I've just started using the whole SVN/Tortoise/VS2005 stuff... it seems to me that you can't do a checkout from within VS and need to do it from Tortoise directly. I just used Tortoise to check out to a working dir then opened up in VS and it seemed to work.

Coming from an eclipse/CVS background what would be nice is the "decorators" in VS that tell you that you're working with a checked out file. That is in vs if you change a file, you get a red exclamation mark to remind you that you need to commit your changes. I might be asking a bit much here though :)

Regards,
Anthony.

Jack said...

Wow, cool stuff. Just 2 comments:

1. How to edit conflict and resolve conflict?
2. Is there anyway to add icon in front of file/folder?

Thanks for your great work

Frank said...

This looks promising however when I try to execute the "Update" command from the Subversion menu it seems to launch DotFuscater and not do anything else?

Garry Bodsworth said...

Hi there,

Just to answer a couple of previous questions:

There is no internal way to resolve a conflict at the moment.

It is impossible to add icons to the front of folders since it uses the "External Tools" feature so it can work easily with the Express Editions as well as the Professional ones.

If the command being run is wrong (Dotsfuscator) it is possible the order your External Tools is incorrect or when you imported the settings they may not have all been applied.

sheremetyev said...

If you want to get complete Subversion integration in Visual Studio please have a look at VisualSVN. It wraps TortoiseSVN UI too but provides also seamless support for file operations (renames, moves etc.) and shows status in Solution Explorer. Costs just $49.

Manish Joisar said...

I have done as per your setting, but i am not getting file wise Update/Commit/Get Lock/Release Lock/Revert. So i can get same way like i am doing it in VSS. It will be great if someone can solve this issue. And i am only interested in VS2005, Subverion, TortoiseSVN & vssettings. Not at all interested in any other tools. I think Garry's Bit can solve this. Please help me.

Jon said...

I don't know which version of TortoiseCVS you are targeting but none of the executables in your settings file is in my Tortoise installment. I use TortoiseCVS 1.8.31
Am I suppose to install another version of Tortoise?
- Jon

Garry Bodsworth said...

This is for TortoiseSVN, not TortoiseCVS. It is probable that a similar solution can be used for that source control system.

Check out TortoiseSVN at http://tortoisesvn.net

The latest version of the Visual Studio settings is here:
http://garrys-brain.blogspot.com/2007/07/tortoisesvn-and-visual-studio.html

Jon said...

ahh my bad. sorry ;-)

bkraul said...

Just a quick question. The article mentions "Context Menus". Are you talking about context menus that show up when right clicking a file or folder in the solution explorer? Because if that is the case, Eventhough I get everything else working fine, I cant see any context menus. Thanks for such a nice solution man!