是否可以为 CE 6.0 R3 创建独立的 Windows Silverlight 嵌入式应用程序?
我们正在研究使用 Silverlight 作为我们的 UI 创建器。我们可以从平台构建器中运行一个子项目,但希望将此代码提取到独立的 VS 项目中。我有一个从平台构建器构建的 SDK,添加了 Silverlight。目前,我在针对此 SDK 构建的项目中遇到了未解决的外部符号错误。
错误 1 错误 LNK2019:函数 WinMain SilverlightTestApp.obj SilverlightTestApp
中引用了无法解析的外部符号 GetXRApplicationInstance 错误 2 错误 LNK2019:函数 WinMain SilverlightTestApp.obj SilverlightTestApp 中引用了无法解析的外部符号 XamlRuntimeInitialize
已包含 XamlRuntime.lib 和 uuid.lib 所在的库文件。
任何帮助将不胜感激,因为我觉得我目前正在碰壁。
编辑: CE6R3 附带的 Silverlight 运行时仅支持 Silverlight 2 功能。这意味着您可以使用 Blend 2 或 Blend 3,但您必须创建一个 Silverlight 2 项目。只要您使用正确的 SDK 并针对正确的设备,您就可以使用 VS2005 或 VS2008 来创建应用程序。但是,您将无法使用 WEST,因为这些工具专门针对 CE7 附带的 Silverlight 运行时(本质上是 Silverlight 3)。另外,您不能使用与 WEST 和 CE7 一起安装的嵌入式 silverlight 的 VS2008 项目模板。该模板生成的代码与 CE6R3 不兼容。
所以我无法使用下面的页面,因为它基于 WEST 而我们使用的是 CE 6.0R3
We are investigating using Silverlight as our UI creator. We can get a subproject running from the Platform builder but would like to pull this code to a standalone VS project. I have an SDK built from Platform builder with Silverlight added in. Currently I am getting unresolved external symbol errors in the project build against this SDK.
Error 1 error LNK2019: unresolved external symbol GetXRApplicationInstance referenced in function WinMain SilverlightTestApp.obj SilverlightTestApp
Error 2 error LNK2019: unresolved external symbol XamlRuntimeInitialize referenced in function WinMain SilverlightTestApp.obj SilverlightTestApp
The library files where XamlRuntime.lib and uuid.lib are located have been included.
Any help would be greatly appreciated as I feel like I am running up against a brick wall currently.
Edit:
The Silverlight runtime that comes with CE6R3 only supports Silverlight 2 functionality. That means you can use either Blend 2 or Blend 3 but you will have to create a Silverlight 2 project. You can use either VS2005 or VS2008 to create your application as long as you use the correct SDK and target the right device. HOWEVER, you will not be able to use WEST since these tools specifically target the Silverlight runtime that comes with CE7 (essentially Silverlight 3). Also you can NOT use the VS2008 project template for silverlight for embedded that installs with WEST and CE7. The code that this template generates is not compatible with CE6R3.
So I am not able to use the page below because it is based off of WEST and we are using the CE 6.0R3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
按照本教程进行操作,它应该可以工作,可能您还没有将 Blend 项目很好地转换为 Visual Studio 项目:
http://blogs.msdn.com/b/silverlightforwindowsembedded/archive/2010/07/19/first-silverlight-for-windows-embedded-application.aspx
Follow this tutorial and it should work, probably you haven't converted well the Blend project into a Visual Studio one:
http://blogs.msdn.com/b/silverlightforwindowsembedded/archive/2010/07/19/first-silverlight-for-windows-embedded-application.aspx