简体   繁体   English

无法在Travis CI上构建WPF应用程序

[英]Failed build on Travis CI for WPF Application

I have developed a program in C# and WPF which builds on my local computer, but not on Travis CI. 我已经用C#和WPF开发了一个程序,该程序建立在我的本地计算机上,而不是基于Travis CI。

travis ci url : https://travis-ci.org/comwrg/TestCI travis ci网址: https//travis-ci.org/comwrg/TestCI

Any advice on possible cause? 关于可能原因有什么建议吗?

Although the question isn't too descriptive, I believe what you are asking is why does the build fail. 尽管该问题不是太具描述性,但我相信您要问的是构建失败的原因。

It seems you are trying to compile a WPF/Universal Windows Application using Travis (line 1105). 看来您正在尝试使用Travis(第1105行)来编译WPF /通用Windows应用程序。 However, this isn't actually achievable. 但是,这实际上是无法实现的。 Travis CI used Mono for it's .NET runtime functionality (see here https://docs.travis-ci.com/user/languages/csharp/ ). Travis CI在其.NET运行时功能中使用了Mono(请参见此处https://docs.travis-ci.com/user/languages/csharp/ )。 Mono doesn't support WPF or Universal Windows Applications as it is designed to be usable on all operating systems (WPF and Universal Windows Apps use DirectX heavily which isn't available as standard on other types of Operating System). Mono不支持WPF或Universal Windows应用程序,因为它被设计为可在所有操作系统上使用(WPF和Universal Windows Apps大量使用DirectX,而在其他类型的操作系统上则不作为标准)。

Maybe look more into other CI distributers such as TeamCity or AppVeyor as they do include MSBuild system. 也许更多地关注其他CI发行商,例如TeamCityAppVeyor,因为它们确实包含MSBuild系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM