I have a Class Library project created with VS2008 (for .net framework 3.5) that is used by several projects.
I’m starting a new project using VS2010 and I want to use this library in the new project, while keeping the VS2008 project working. Additionally I want to share the source files… that is, I don’t want to have two copies of the source files. I know how to do this by creating a new project from scratch and adding the existent files as link. Is there a more automated way to do this?
Use the same version control repository, as suggested by Joel, but create two different VS project files (e.g.
MyProject2008.csprojandMyProject2010.csproj) in the same directory. (Copy the one from VS 2008 and then upgrade only the copy to 2010. Same for solution files, if required.)The only drawback of this solution is that changes to the project structure (add files, move files, etc.) get a little cumbersome since you have to do them twice. But since VS 2008 and 2010 project files are incompatible, I don’t think that you can avoid that.