代码之家  ›  专栏  ›  技术社区  ›  Steve Danner

Silverlight类库到Windows Phone 7类库

  •  3
  • Steve Danner  · 技术社区  · 15 年前

    有人知道Visual Studio 2010中的工具或方法可以将Silverlight 4类库项目转换为Windows Phone 7类库项目吗?

    我可以使用复制和粘贴类文件,但是如果我可以使用转换工具避免这种情况,那将节省所有的时间。

    史蒂夫

    1 回复  |  直到 15 年前
        1
  •  3
  •   Michael S. Scherotter    15 年前
    1. 在安装了Windows Phone开发人员工具的情况下,使用Visual Studio 2010/Express中的项目模板为Silverlight for Windows Phone 7创建新的类库
    2. 对于类库中的每个源文件,使用选项 添加现有项… 以及使用 添加为链接 “添加”按钮中的选项
    3. 编译类库以查看是否存在任何问题
    4. 根据需要添加Windows Phone程序集
    5. 对于特定于Windows Phone的问题,请使用if Windows phone指令

    您可以在这里看到两个这样做的开源项目:

    1. New York Times Silverlight Kit
    2. Microsoft Silverlight Analytics Framework
    推荐文章