开发者

Silverlight class library to Windows phone 7 class library

开发者 https://www.devze.com 2023-01-14 03:33 出处:网络
Does anyone know of a tool or a way within Visual Studio 2010 to convert a Silverlight 4 class library project开发者_如何学运维 to a Windows Phone 7 Class Library project?

Does anyone know of a tool or a way within Visual Studio 2010 to convert a Silverlight 4 class library project开发者_如何学运维 to a Windows Phone 7 Class Library project?

I could resort to copying and pasting class files, but if I can avoid that with a conversion tool, that would save all kinds of time.

Steve


  1. Create a new class library for Silverlight for Windows Phone 7 using the project template in Visual Studio 2010/Express with the Windows Phone Developer Tools installed
  2. For each of the source files in the class library, use the option to Add an Existing Item... and the use the Add As Link option in the Add button
  3. Compile the class library to see if there are any issues
  4. Add the Windows Phone assemblies as needed
  5. For Windows Phone specific issues, use #if WINDOWS_PHONE directives

You can see two open source projects that do that here:

  1. New York Times Silverlight Kit
  2. Microsoft Silverlight Analytics Framework
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号