For SL 4 and .NET 4, the following assemblies are portable at the Siverlight surface area:
There are a great number of types and members in the .NET surface area that cannot run on Silverlight. As a result, you need to write code that targets the Silverlight versions of these assemblies in order to get this scenario to work.
Developers should write their portable logic in Silverlight Class Library projects, and then are free to reference such projects from both Silverlight and .NET application projects. To clarify, on the .NET side, you can reference such a library (Binary) from any kind of .NET project (Ex: WPF, winforms, WCF, WF, ASP.NET, …).
The following are the basic steps to follow to enable the use of portable code in Visual Studio 2010
- Setup projects
- Create .NET application
- Create or add existing Silverlight class library project
- Build Silverlight project
- Establish portable code reference
- Reference Silverlight class library binary from the .NET project
- Run App!