Targeting both .NET 3.5 and Silverlight
问题 Let's imagine I already have a project building .NET 3.5 assembly. Now I want to build this assembly for Silverlight, and moreover, maintain its Silverlight version with minimal efforts further. What is not acceptable: Creating separate project for Silverlight build What is acceptable: Adding custom directives allowing me to target either Silverlight or .NET dependently on e.g. MSBuild properties. Adding special build configurations for Silverlight Adding #ifdef Silverlight / #endif sections