c# - UWP 基于 Jenkins 构建

标签 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版本

最佳答案

直接从 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/

相关文章:

Jenkins 中基于脚本输出的电子邮件通知

swift - XCodeBuild -exportArchive 不允许我指定文件名

ios - 构建步骤 'Xcode' 将构建标记为失败 - Jenkins iOS

c# - Treeview空白显示C#

c# - 解决 Linq To Entities 中缺少 'Contains' 的问题

c# - 由于 fatal error ,WinForm 不接受来自 MySql 的用户输入

c# - 防止数字在 linq-to-sql 中转换为科学记数法

c# - 如何使用 XmlSerializer 反序列化大型文档中的节点

c# - 如何为泛型提供默认类型?

c# - MvcSiteMapProvider - 增强的 Bootstrap 下拉菜单