我正在使用这些示例来构建 Windows 8 应用程序:
http://code.msdn.microsoft.com/windowsapps/Getting-started-with-C-and-41e15af5
(注意:该链接已过时,这可能是正确的链接:Getting started with C# and Visual Basic: Hello World samples )
当我尝试运行 Windows 8 设备模拟器时,出现此错误:
Error 1 Error : DEP0700 : Registration of the app failed. Rejecting a request to register from file://psf/Home/Desktop/Getting%20started%20with%20C#%20and%20Visual%20Basic%20Hello%20World%20and%20Blog%20reader%20samples%20(1)/C#/HelloWorld_Part1/bin/Debug/AppX/AppxManifest.xml because the files are on a network share. Copy the files to the local computer before registering the package. (0x80073cf9) HelloWorld_Part1
我在 Mac 上使用 Paralells。哪个文件夹不是网络共享?
最佳答案
我将 Parallels 与 Windows 10 镜像和 VS Community 2013 一起使用。 我用上面@tempy 提出的解决方案解决了这个问题:在启动配置中选择远程主机并在以下屏幕中写入 localhost,当它询问机器名称时。 我能够像往常一样运行、调试、设置断点
对于 Visual Studio 2015:
- 右键单击该项目
- 选择属性
- 选择调试设置
- 在启动选项下
- 将目标设备设置为“远程机器”
- 将远程机器设置为“localhost”
关于c# - 应用程序注册失败,因为文件位于网络共享上。在注册包之前将文件复制到本地计算机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12126918/