How to compile single project for Silverlight and then standard .NET
-
Hi I have a class library with code that is compatible with both Silverlight and standard .net libraries. (the minor incompatibilities can be solved with #if) How I can compile the code for both of these platforms? I mean - how do I set up Visual Studio to have two output configurations - one for .net, one for silverlight, so that my bin folder will contain two compiled .dlls? The project was initially created as Widnows Class Library and now I don't even know how to tell the VS to use Silverlight libraries to begin with:-(
-
Hi I have a class library with code that is compatible with both Silverlight and standard .net libraries. (the minor incompatibilities can be solved with #if) How I can compile the code for both of these platforms? I mean - how do I set up Visual Studio to have two output configurations - one for .net, one for silverlight, so that my bin folder will contain two compiled .dlls? The project was initially created as Widnows Class Library and now I don't even know how to tell the VS to use Silverlight libraries to begin with:-(
To answer my own question, the following links have some useful info (different approaches): http://www.wintellect.com/CS/blogs/krome/archive/2011/05/24/sharing-code-between-silverlight-and-wpf-using-build-targets.aspx[^] http://msdn.microsoft.com/en-us/magazine/ee321573.aspx[^] The latter brought to my attention the possibility of file linking between projects, which I completelly forgot is possible.