[英]msbuild command not found in travis-ci
I have the following travis file:我有以下 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
This gives an error saying that msbuild was not found:这给出了一个错误,指出未找到 msbuild:
msbuild: command not found
All the examples I see do not need to install anything, and msbuild/nuget just work.我看到的所有示例都不需要安装任何东西,msbuild/nuget 就可以工作。 If I remove the line to install nuget, then I get a similar error of nuget not found.
如果我删除安装 nuget 的行,那么我会收到类似的错误 nuget not found。
Is there something I am missing in order to execute msbuild?为了执行 msbuild,我有什么遗漏吗? Is there a way to install it?
有没有办法安装它?
You should try to use dotnet build
instead of msbuild.您应该尝试使用
dotnet build
而不是 msbuild。 It should do the same thing.它应该做同样的事情。 Herehttps://docs.microsoft.com/de-de/dotnet/core/tools/dotnet-build
这里https://docs.microsoft.com/de-de/dotnet/core/tools/dotnet-build
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.