在travis-ci中找不到msbuild命令>> [

问题描述 投票:0回答:1
我有以下travis文件:

language: csharp solution: src/LaraUI.sln mono: none dotnet: 3.0.100 before_install: - sudo apt install nuget install: - nuget restore src/LaraUI.sln script: - msbuild /p:Configuration=Debug src/LaraUI.sln - dotnet test src/Test/Tests.csproj

这会给出一个错误,指出未找到msbuild:

msbuild: command not found

我看到的所有示例都不需要安装任何东西,msbuild / nuget可以正常工作。如果我删除安装nuget的行,那么会收到类似的nuget not found错误。

为了执行msbuild我缺少什么吗?有没有安装的方法?

存储库为here

我有以下travis文件:语言:csharp解决方案:src / LaraUI.sln单声道:无dotnet:3.0.100 before_install:-sudo apt install nuget安装:-nuget restore src / LaraUI.sln脚本:-...

c# msbuild nuget travis-ci
1个回答
1
投票
您应该尝试使用dotnet build而不是msbuild。它应该做同样的事情。此处https://docs.microsoft.com/de-de/dotnet/core/tools/dotnet-build
© www.soinside.com 2019 - 2024. All rights reserved.