UWP建立在詹金斯

时间:2015-10-13 09:33:15

标签: c# .net jenkins continuous-integration uwp

我试图在Jenkins上构建一个C#UWP,但是我收到了以下错误:

XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'System.Runtime.dll'

构建工具2015和VS2015都安装在Jenkins服务器上,构建脚本的目标是MSbuild版本14

1 个答案:

答案 0 :(得分:6)

直接用于UWP应用程序版本控制的干净源代码树需要运行NuGet来查找project.json文件中指定的依赖项。

作为开发人员,这是Visual Studio 2015通常为您所做的事情。

在构建服务器上,您需要运行命令行NuGet 3.x可执行文件,以便在构建运行之前在构建计算机上下拉所有依赖项(MSBuild部分)。

转到http://dist.nuget.org/index.html以获取命令行NuGet.exe。

该命令的格式为nuget.exe restore [MyApp.sln]