0

I have some utilities and extension methods that I would like to leverage in an SL4 app. I know that to reference an assembly the project type has to be SL4 class library. I also understand that SL is a subset of the .NET framework. Therefore not all functionality is portable. So assume all the code I want to leverage in my SL4 app is portable to SL4.

What is the easiest way to expose an existing project/plain-old-CLR-library to SL4? I am looking for a maintainable workflow. As I develop against the library I want to leverage the new features in my SL4 app without having to rewrite the code in an SL4 class library.

Surley there is an easy way that I am completely missing...

Mark Hall
  • 53,938
  • 9
  • 94
  • 111
dFlat
  • 819
  • 7
  • 19
  • 1
    Sounds like you want http://stackoverflow.com/questions/465460/sharing-c-code-between-windows-and-silverlight-class-libraries – Marc Sep 08 '11 at 03:11
  • @Marc, That is exactly what I was looking for, thanks! Repost as answer and I will choose it and close this question. – dFlat Sep 09 '11 at 06:08

1 Answers1

0

Sounds like you want Sharing C# code between Windows and Silverlight class libraries

Another way you can do it is to just share(link) classes between your .NET library and your Silverlight library. An easy way to do this is to use the ProjectLinker tool.

Community
  • 1
  • 1
Marc
  • 9,254
  • 2
  • 29
  • 31