Can I reference a referenced library in Visual Studio 2010 (C#)
I have to change some used libraries quite a lot. I am storin开发者_C百科g the changed libraries in a new folder. To use these new libraries I have to change the references in projects which uses these. Because my solution contains 15 projects which have to use the libraries, I have to change the references in every project. But that really s**! Is there a simple way to just change the reference path in a single project and the other projects are referencing the references? So that I have to change the references only once?
Use reference path tab in project properties. http://msdn.microsoft.com/en-us/library/6taasyc6.aspx
If the library is in your solution, you can add it as a "project reference" in all the projects that depend on it. Thus, changes will automatically be accessible as soon as the library changes.
I don't think such a 'reference to a reference' mechanism exists. You can ease your pain a bit by opening your project in Notepad, copying th desired reference string and then using some third-party search and replace software which can traverse through all your projects and change the reference for you.
I would create a shared library folder.
/src
/lib (shared folder)
/mylibraries (for ease of use copy your newest libraries here)
When you decide you are going to increment you can move your old libraries to a new folder and replace them with your new libraries.
/src
/lib (shared folder)
/mylibraries (copy from here)
/3-1-2011 (to here)
精彩评论