0

我正在尝试在 Visual Studio Team Services 中设置构建过程,我已经按照UWP 项目的步骤在我的盒子上使用代理来完成此操作,但我不断收到以下构建错误:

C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\Microsoft.Windows.UI.Xaml.CSharp.targets(7,3): Error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\10.0.10240.0\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

我检查了构建抱怨的路径,问题出在路径中的 10.0.10240.0 中:

C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\10.0.10240.0\Microsoft.Windows.UI.Xaml.CSharp.targets

目标文件位于

C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\Microsoft.Windows.UI.Xaml.CSharp.targets

这是项目文件中的声明的样子(我不认为这是错误的,我看不出这个奇怪的 10.0.10240.0 版本在路径中的来源):

<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />

关于可能出现的问题以及我该如何解决的任何建议?

4

1 回答 1

0

通用 Windows 平台是在 Windows 10 中引入的。Visual Studio 从 Visual Studio 2015 开始支持 UWP 应用。您需要使用 VS2015 创建 UWP 项目,并在构建代理计算机上安装 VS2015。

于 2016-04-01T10:05:23.530 回答