Targeting both .NET 3.5 and Silverlight

前端 未结 5 1205
感情败类
感情败类 2021-02-04 09:35

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 minima

5条回答
  •  清歌不尽
    2021-02-04 10:15

    You have to have two projects because the mscorlib references are different for the two platforms.

    Check out this question: http://www.google.ca/search?hl=en&q=targetting+silverlight+and+wpf&meta=&aq=f&oq=

    If all you want to do is have a regular old .NET library that shared between the two, then I suggest creating two projects (one for Silverlight, one for regular) and including the same files in both projects. This is much easier to understand for other developers.

提交回复
热议问题