问题描述
我使用 Zebble Extension for Visual Studio 创建了一个示例项目.相关项目创建成功但不幸的是,当我尝试编译 UWP 项目时,构建过程失败并出现以下错误:
I created a sample project using Zebble Extension for Visual Studio.The related projects created successfully but unfortunately when I tried to compile the UWP project, the build process failed with the following error:
Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 10, Column 13, Reason: '$solutionname$' violates pattern constraint of '[-.A-Za-z0-9]+'. The attribute 'Name' with value '$solutionname$' failed to parse.
我该如何解决?
推荐答案
该错误意味着在 Visual Studio 中创建新项目时,Zebble 扩展无法运行 Zebble CLI 工具 (Zebble.exe).
That error means the Zebble extension was unable to run the Zebble CLI tool (Zebble.exe) upon creation of your new project in Visual Studio.
通常这是因为安全限制.所以解决这个问题,你应该:
Normally this is because of security restrictions. So solve that, you should:
- 在创建新项目之前以管理员身份运行 Visual Studio.
注意:
或者,您可以将 Visual Studio 进程 (devenv.exe) 配置为始终以管理员身份运行.这对于防止将来出现其他问题(例如调试进程)非常方便:
Alternatively, you can configure your Visual Studio process (devenv.exe) to always run as administrator. This can be handy to prevent other problems in the future (such as debugging a process) using:
可以您是否强制 Visual Studio 在 Windows 8 中始终以管理员身份运行?
(也适用于 Windows 10)
这篇关于我无法通过 Zebble 构建生成的 UWP 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!