Reputation: 4204
I have a Silverlight project and a C# CLR class library project. The problem is i cannot add a reference of the class library to the Silverlight project (because it is not a silverlight assembly). Is there any way i can make use of the class library in my silverlight application? Is there a way to compile the Class library into a silverlight assembly or can i add an intermediate project...
Upvotes: 1
Views: 163
Reputation: 5554
You can create a Silverlight project, and add file links to your original project. If there are features in .NET4 that aren't available in Silverlight, you can test it using #if SILVERLIGHT and comment it out.
Upvotes: 0
Reputation: 194
As long as you are targeting atleast Silverlight 4 make your class library a Portable Class Library.
Upvotes: 2