我正在尝试在 Jenkins 上构建 C# UWP,但出现以下错误:
XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'System.Runtime.dll'
构建工具2015和VS2015都安装在Jenkins服务器上,构建脚本针对MSbuild 14版本
最佳答案
直接从 UWP 应用程序的版本控制中提取的干净源代码树需要运行 NuGet 以查找 project.json 文件中指定的依赖项。
作为开发人员,这是 Visual Studio 2015 通常为您做的事情。
在构建服务器上,您需要运行命令行 NuGet 3.x 可执行文件,以便在构建运行(MSBuild 部分)之前将所有依赖项拉到构建机器上。
转到 http://dist.nuget.org/index.html获取命令行 NuGet.exe。
该命令的格式为 nuget.exe restore [MyApp.sln]
。
关于c# - UWP 基于 Jenkins 构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33099091/