ASP.NET Core WebApp not working on Travis CI

Getting the following error with TravisCI when trying to create ASP.NET Core WebApp.

Could not find project file / usr / lib / mono / xbuild / Microsoft / VisualStudio / v 14.0 / DotNet / Microsoft.DotNet.Props, import. Not paying attention.

Created on AppVeyor . Is there a way to install a missing file?

Please note that I am new to Travis CI, so please include a link (e.g. link / step by step / guide) on how to implement your offer, thanks.

+4
source share
1 answer

After trial and error, we came to the following:

, , , , dotnet , , (, dotnet publish)

:

xbuild, dotnet . script RTM : https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.sh

dotnet restore dotnet build (cd project.json)

.travis.yml :

language: csharp
install: curl -s https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.sh

| bash    script:     - dotnet WebApp/src/WebApp/project.json     - dotnet build WebApp/src/WebApp/project.json     :
      :         :         - gettext         - libcurl4-openssl-dev         - libicu-dev         - libssl-dev         - libunwind8         - zlib1g

, . : http://andrewlock.net/adding-travis-ci-to-a-net-core-app/

KoreBuild https://github.com/aspnet/KoreBuild/tree/1.0.0/template

script: ./build.sh  //Add the file to repo
+3

Source: https://habr.com/ru/post/1648105/


All Articles