gpt4 book ai didi

c# - 如何在 C# 或 F# 中使用 Travis-CI

转载 作者:IT王子 更新时间:2023-10-29 03:37:19 25 4
gpt4 key购买 nike

Travis CI 持续集成服务正式支持众多 languages ,但不是 C# 或 F#。

我可以在我的 .net 项目中使用它吗?

最佳答案

Travis CI 现在 supports C# .从该页面大量引用:

Overview

The setup for C#, F#, and Visual Basic projects looks like this:


language: csharp
solution: solution-name.sln
mono:
- latest
- 3.12.0
- 3.10.0

Script

By default Travis will run xbuild solution-name.sln. Xbuild is a build tool designed to be an implementation for Microsoft's MSBuild tool. To override this, you can set the script attribute like this:


language: csharp
solution: solution-name.sln
script: ./build.sh

NuGet

By default, Travis will run nuget restore solution-name.sln, which restores all NuGet packages from your solution file. To override this, you can set the install attribute like this:


language: csharp
solution: solution-name.sln
install:
- sudo dosomething
- nuget restore solution-name.sln

关于c# - 如何在 C# 或 F# 中使用 Travis-CI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16751772/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com