How can I use SCM on linked files in VS2008 projects?

Posted by Tom Bushell on Stack Overflow See other posts from Stack Overflow or by Tom Bushell
Published on 2009-10-19T18:29:51Z Indexed on 2012/10/11 9:38 UTC
Read the original article Hit count: 135

Background:

I'm using Visual-SVN V. 1.7.5 with VS2008. I'm fairly new to SVN.

I have a Solution that uses source files that will be shared with other Solutions.

I've put these files in a folder called "Shared", and added them to my Solution using

"Add -> Existing Item... -> Add As Link"

which works fine as far as VS2008 is concerned.

But when I try to add the linked files to SVN using the "Add to Suversion" menu item on the file's context menu, I get a warning:

"...not added to Subversion because it is out of working copy. Please setup working copy root using Visual SVN -> Set Working Copy Root menu".

I tried this, but this seems to change the root directory of the whole solution - not what I want to do.

Googling and searching SO indicates that I may want to set up some SVN Externals. I tried to follow the examples, using the command line for the first time with Visual-SVN. But I just got a bunch of error messages I didn't understand.

Questions:

  1. Are Externals the way to go here?

  2. If so, can someone provide some detailed, step-by-step help on how to do this with Visual-SVN?

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about visualsvn