How to include source files of one project in another project?

Viewed 7804

I'm writing a class library in C#/.NET.

I need to compile it for two different frameworks:

  • 4.0 (using for debug myself)
  • 3.5 (using on client).

I want to have one set source files for the two projects, so I can make corrections in 1 copy of files and they are included in the other project automatically.

Now, if I even use "add existing item", VS 2010 creates copies; and I need to copy the latest versions every time.

I can't just change a target in project, because I'm using different versions of .dll references, and because ms vs has some quirks.

3 Answers
Related