We're using Visual SVN for source control. We've got multiple solutions that reference a class library project. Each of the solutions uses svn:externals to reference the class library so that when the solution is opened in VS2010, we can make changes to the class library project with the svn (for lack of a better word) 'link'.
Say I have two solutions, solution A and solution B. Each of them reference class library C using svn:externals.
Say I make changes to class library C in solution A. In order to get the changes in solution B so that I can test both, I first have to commit the chang开发者_JAVA技巧es to SVN and then update solution B.
Is there a way to set this up so that:
1) I only have one copy of the class library C project on my development machine
and/or
2) Set this scenario up so that I don't have to commit to svn in order to test solution B ?
I don't want to have to commit to svn before I have fully tested all the solutions.
How do you handle this scenario?
This will be somewhat hacky way, but you can symlink all but one "external-lib" directory to a single location:
project-a
external-lib <-+
|
project-b |
external-lib --+ // symlinks
If you have a seperate solution/project for class library C you can the reference it within your solution for class library A and class library B by using Add project and browsing to the location of the Class library C project.
That way your C library project only exists in one location and any changes made when editing in it will be automatically detected by when your A or B solution takes focus.
精彩评论