【发布时间】:2019-06-16 04:27:45
【问题描述】:
我按照Microsoft Guide 在VS2017 上部署和运行他们的 UWP 示例,但他们总是给我下图所示的错误。例如,我尝试在Windows 10 上的VS2017 中运行CustomEditControl 示例,并按照README.md 的以下说明进行操作,但它仍然给我同样的错误:
问题:Microsoft 团队中的某个人或成功运行任何这些示例的任何人可以帮助我吗?
来自他们的 README.md 文件:
## Run the sample
The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it.
### Deploying the sample
- Select Build > Deploy Solution.
### Deploying and running the sample
- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.
错误:
更新:
- 我正在使用
Windows 10 Pro和最新的version 1809 -
VS2017有最新更新15.9.5 - 我从
CS文件夹中提取了样本,这意味着它是一个C# 应用程序。该示例在使用Build-->Rebuild Solution菜单时构建successfully。输出显示如下:1>----- 重建所有已启动:项目:CustomEditControl,配置:调试 ARM ------ 1> CustomEditControl -> C:\DotNET2017\UWP\Official_samples\Windows-universal-samples-master\Samples\CustomEditControl\cs\bin\ARM\Debug\CustomEditControl.exe ==========全部重建:1成功,0失败,0跳过==========
- 按照
README.md的说明,如果我运行Build-->Deploy Solution,它会给我错误Deploy failed,没有任何原因/原因。此外,VS2017底部的Error List选项卡显示 0 错误,如下所示:
【问题讨论】:
-
您没有引用“构建示例”的第一步。它构建成功了吗?如果没有,错误是什么?
-
使用 VS 2017 您需要选择工作负载 通用 Windows 平台开发,但要构建 C++ UWP 应用程序,您还必须选择可选组件“C++ Tools for UWP apps ”。见Microsoft Docs。在您的系统上寻找一个名为“Visual Studio Installer”的应用程序来更新您的安装。
-
@ChuckWalbourn 在阅读了您的 cmets 之后,我添加了一个
UPDATE部分来回答您的询问。阅读更新后,请让我知道我可能仍然缺少什么,因为我确实认为我在这里遗漏了一些东西。
标签: uwp