How do I use Travis-CI with C# or F#(如何将 Travis-CI 与 C# 或 F# 一起使用)
问题描述
Travis CI 持续集成服务官方支持多种语言,但是不是 C# 或 F#.
我可以在我的 .net 项目中使用它吗?
Travis CI 现在 支持C#.从该页面大量引用:
<块引用>概述
C#、F# 和 Visual Basic 项目的设置如下所示:
语言:csharp解决方案:解决方案名称.sln单核细胞增多症:- 最新的- 3.12.0- 3.10.0
<块引用>
脚本
默认情况下,Travis 将运行 xbuild solution-name.sln.Xbuild 是一个构建工具,旨在实现 Microsoft 的 MSBuild 工具.要覆盖它,您可以像这样设置脚本属性:
语言:csharp解决方案:解决方案名称.sln脚本:./build.sh
<块引用>
NuGet
默认情况下,Travis 将运行 nuget restore solution-name.sln,它会从您的解决方案文件中恢复所有 NuGet 包.要覆盖它,您可以像这样设置安装属性:
语言:csharp解决方案:解决方案名称.sln安装:- 须藤做某事- nuget 恢复解决方案名称.sln
Travis CI continuous integration service officially supports many languages, but not C# or F#.
Can I use it with my .net projects?
Travis CI now supports C#. Quoting liberally from that page:
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
这篇关于如何将 Travis-CI 与 C# 或 F# 一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何将 Travis-CI 与 C# 或 F# 一起使用


- C#MongoDB使用Builders查找派生对象 2022-09-04
- C# 中多线程网络服务器的模式 2022-01-01
- 输入按键事件处理程序 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01