使用我的应用程序部署 Corecon API 的正确方法是什么?
我有一个实例化 WP7 模拟器的 WinForms 应用程序。一切都在本地运行良好(当然)。但我创建了一个虚拟机来测试安装和 XCopies。 机中使用我的应用程序启动模拟器时出现以下异常:
“无法加载文件或程序集'Microsoft.VisualStudio.DeviceConnectivity.Interop.10.0,版本=10.0.0.0...”
尝试在虚拟 SmartDevice.Connectivity 程序集设置为复制本地,因此可以轻松完成。但没有其他东西出现。
我一直在寻找与 Visual Studio 安装分开的 Corecon API 安装,但未能找到。看来这可以解决我的问题,因为相关程序集位于 GAC 中。
我是否必须在项目中手动实际引用该程序集?或者有更好的方法吗?
I have a WinForms app that instantiates the WP7 emulator. Everything works great locally (of course). But I've created a VM to test installations and XCopies. Getting the following exception upon attempts to pull up the emulator with my app in the VM:
"Could not load file or assembly 'Microsoft.VisualStudio.DeviceConnectivity.Interop.10.0, Version=10.0.0.0..."
I have the Microsoft.SmartDevice.Connectivity assembly set to copy local, so it's along for the ride. But nothing else shows up.
I was looking for a Corecon API instllation that was separate from the Visual Studio install, but wasn't able to find one. Seems like that would solve my issue since the assembly in question is sitting in the GAC.
Am I going to have to resort to actually referencing this assembly manually in my project? Or is there a better way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题是在虚拟机内运行模拟器。
模拟器是一个虚拟机,官方不支持在虚拟机内运行它。不同的人使用不同的虚拟化技术取得了不同程度的成功,因此您可能会使用不同的技术取得成功。
Your issue is running the emulator inside a VM.
The emulator is a VM and running it inside a VM is not offficially supported. Different people have had differing levels of success using different virtualization technologies so you may have success with a different one.