在 Travis 上构建 .NET Core 2.0 CI
Build .NET Core 2.0 on Travis CI
我将测试和演示项目迁移到了 .NET Core 2.0。我试图建立这个项目,但我有这个错误:
/home/travis/build/MarkKhromov/The-Log/TheLog.Demos/TheLog.Demos.csproj.metaproj
: error MSB4025: The project file could not be loaded. Could not find
file
'/home/travis/build/MarkKhromov/The-Log/TheLog.Demos/TheLog.Demos.csproj.metaproj
我写在.travis.yml:
language: csharp
mono: none
dotnet: 2.0.0
script:
- dotnet restore
- dotnet build ./TheLog.sln
- dotnet test ./TheLog.Tests/
我做错了什么?本地构建没问题。
我设法解决了这个问题,方法如下:
我写在 .travis.yml:
language: csharp
mono: none
dotnet: 2.0.0
script:
- dotnet restore
- dotnet build ./TheLog/
- dotnet build ./TheLog.Demos/
- dotnet test ./TheLog.Tests/
但对我来说,当我尝试编译解决方案 (.sln) 文件时为什么会出现这些错误仍然是个谜
我将测试和演示项目迁移到了 .NET Core 2.0。我试图建立这个项目,但我有这个错误:
/home/travis/build/MarkKhromov/The-Log/TheLog.Demos/TheLog.Demos.csproj.metaproj : error MSB4025: The project file could not be loaded. Could not find file '/home/travis/build/MarkKhromov/The-Log/TheLog.Demos/TheLog.Demos.csproj.metaproj
我写在.travis.yml:
language: csharp
mono: none
dotnet: 2.0.0
script:
- dotnet restore
- dotnet build ./TheLog.sln
- dotnet test ./TheLog.Tests/
我做错了什么?本地构建没问题。
我设法解决了这个问题,方法如下: 我写在 .travis.yml:
language: csharp
mono: none
dotnet: 2.0.0
script:
- dotnet restore
- dotnet build ./TheLog/
- dotnet build ./TheLog.Demos/
- dotnet test ./TheLog.Tests/
但对我来说,当我尝试编译解决方案 (.sln) 文件时为什么会出现这些错误仍然是个谜