c# - 应用程序注册失败,因为文件位于网络共享上。在注册包之前将文件复制到本地计算机

标签 c# windows

我正在使用这些示例来构建 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/

相关文章:

c# - 如何向 || 右侧的区域添加 await在 "if (count == 0 || await MainPage.DisplayAlert"

c - 读取另一个进程的环境变量

python - 带有编解码器 header 的 ASCII 安全文件的编码问题,具体取决于行数

windows - 选择多个复选框以执行条件

c# - MVC5 使用来自其他命名空间的类的脚手架(引用的 DLL)

c# - 在 C# 中将按钮添加到 TabControl 选项卡

c# - 如何在Winform中使用CSS格式化 Crystal 报表?

c - 从 Windows 上的蓝牙 COM 端口获取 FILE*

windows - 将文件夹中的所有文件移动到新的子目录

c# - 如何使用 Open XML 从 Word 文档中的控件读取数据