[英]Build failed for ASP.NET Core 3.1 in Travis CI
I cannot build my ASP.NET 1 Core 3.1 application in Travis CI and after several unsuccessfull attempts I think it's time to figure out with the community what's the problem.我无法在 Travis CI 中构建我的 ASP.NET 1 Core 3.1 应用程序,经过几次不成功的尝试,我认为是时候与社区一起找出问题所在了。
Build: https://travis-ci.org/github/stanislavstoyanov99/CinemaWorld/jobs/686546731构建: https://travis-ci.org/github/stanislavstoyanov99/CinemaWorld/jobs/686546731
Build config: https://travis-ci.org/github/stanislavstoyanov99/CinemaWorld/jobs/686546731/config构建配置: https://travis-ci.org/github/stanislavstoyanov99/CinemaWorld/jobs/686546731/config
Here's my repo in GitHub: https://github.com/stanislavstoyanov99/CinemaWorld这是我在 GitHub 中的仓库: https://github.com/stanislavstoyanov99/CinemaWorld
I think the problem is that my travis's configuration file is not in the same folder with the solution file, so I put directory path in travis configuration file, but maybe I have some mistakes.我认为问题是我的travis的配置文件和解决方案文件不在同一个文件夹中,所以我把目录路径放在travis配置文件中,但可能我有一些错误。
Thanks in advance!提前致谢!
In your travis yml, you are missing a dependency for the dotnet version you want installed:在您的 travis yml 中,您缺少要安装的 dotnet 版本的依赖项:
dotnet: 3.1.202
I think 3.1.4 is the latest, but feel free to try different versions我认为 3.1.4 是最新的,但请随意尝试不同的版本
Edit: I mixed up the SDK version with the runtime.编辑:我将 SDK 版本与运行时混合在一起。 To build, you need the runtime version, which as of 13/05/2020 is 3.1.202要构建,您需要运行时版本,截至 13/05/2020 为 3.1.202
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.