简体   繁体   English

Xamarin和Travis-ci

[英]Xamarin and Travis-ci

I have a simple hello world app that fails to build. 我有一个简单的hello world应用程序无法构建。 I'm getting the following output from the build. 我从构建中获得以下输出。

Warnings:
/home/travis/build/chaione/csharptrav/csharp/csharp.iOS/csharp.iOS.csproj:  warning : Could not find project file /usr/lib/mono/xbuild/Xamarin/iOS/Xamarin.iOS.CSharp.targets, to import. Ignoring.
/home/travis/build/chaione/csharptrav/csharp/csharp.Droid/csharp.Droid.csproj:  warning : Could not find project file /usr/lib/mono/xbuild/Novell/Novell.MonoDroid.CSharp.targets, to import. Ignoring.

Errors: 
/home/travis/build/chaione/csharptrav/csharp/csharp.sln (default targets) ->
(Build target) ->
    /home/travis/build/chaione/csharptrav/csharp/csharp.iOS/csharp.iOS.csproj: error : /home/travis/build/chaione/csharptrav/csharp/csharp.iOS/csharp.iOS.csproj: /home/travis/build/chaione/csharptrav/csharp/csharp.iOS/csharp.iOS.csproj could not import "$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets"

What do I need to do get this to build? 我需要做什么才能构建它? The solution consist of 6 projects: Core PCL(profile 78), Android, iOS, Android UI test, iOS UI test, UnitTest (using NUnit). 该解决方案包括6个项目:Core PCL(配置文件78),Android,iOS,Android UI测试,iOS UI测试,UnitTest(使用NUnit)。

I had an issue like that and moved to https://www.appveyor.com/ . 我有这样的问题并转移到https://www.appveyor.com/ Here https://github.com/XLabs/Xamarin-Forms-Labs/blob/master/appveyor.yml you can find a link to appveyor.yml which plays the role as .travis.yml. 在这里https://github.com/XLabs/Xamarin-Forms-Labs/blob/master/appveyor.yml你可以找到一个链接到appveyor.yml,扮演.travis.yml的角色。 Please note that you have to have a Xamain license. 请注意,您必须拥有Xamain许可证。 The credentials are secured in the appveyor.yml file. 凭证在appveyor.yml文件中受到保护。

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

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