We have a large number of projects within the solution, mainly simple class libraries (which are later loaded via MEF) designed for .NET 4.0.
We would like to compile a large number of such files for both .NET 4.0 and Silverlight without duplicating files.
Is there a way to create a new Silverlight class library and link the source files to other projects so that the .NET 4.0 library and Silverlight 4.0 library are compiled?
I know that .NET 4.0 can load silverlight 4 assemblies, but I would like to compile both versions anyway, rather than compiling everything for Silverlight.
Update: I saw a solution when some of the projects contained links to other files in other projects, so when you changed the file in one project, it was also updated in another. This is what I mean.
alt text http://i31.tinypic.com/33esow4.png
Screenshot of the solution, the Vialis.Led.Interfaces project contains the source files, in the silverlight project I want to create links to these files.
source share