I was trying to get a global .NET Core tool working on my development machine, which just so happens to be running macOS. I also work wit....NET macOS
We’ve moved around CSS frameworks in the past few years, Semantic UI for our application layer, and Bootstrap for our static sites. As ou...SASS
New to the frontend at RIMdev, or looking for more about our Frontend team? Here’s a quick overview of our team, tools, and culture! As ...Team RIMdev Frontend
We’re in the process of scaffolding out our Microsoft Azure environments using Terraform. We’re looking at deploying consistently from ma...Azure Terraform
Requirement ASP.NET Core 2.2 or 3.0 Why can’t I do this in earlier versions? Read ASP.NET Core 2.2 First Look – Endpoint Routing ...ASP.NET Core Routing Middleware
Health checks in ASP.NET Core are useful for reporting the health of your ASP.NET Core web application. But, this functionality can’t dir....NET
As I’ve walked through upgrading a number of solutions to target a new version of the .NET Framework, I’ve compiled a list of helpful ste....NET
What is WSL? Windows Subsytsem for Linux (aka WSL) is an excellent tool for running Linux-based binaries natively in Windows. With the i...WSL git ASP.NET MVC
Updated Solution! Thanks for the post!If you don't want to create a web.config, you can also drive this through the <AspNetCoreHo...asp.net asp.net core
I, Khalid Abuhakmeh, recently wrote about my [Razor Pages first impressions][khalid] and am mostly positive about the addition to the ASP...asp.net asp.net core razor
We’re in the process of scaffolding out our Microsoft Azure environments using Terraform. While Terraform does an excellent job creating ...Terraform OSS
TL;DR Explicitly using SqlBulkCopy might never cause this problem since mapping is done manually, but NPoco’s usage does automatic map...NPoco SqlBulkCopy
As you’re building out an API it’s important to keep response times in check. In many cases slowness is due to database calls, web reques...Benchmarking OSS
We’ve accomplished so much this year thanks to @VueJS that we wanted to give back to the Vue community in some way. Ritter IM is sponsor...VueJS
.NET Core is a cross-platform runtime, and if you play your developer cards right, you can take advantage of running your application on Windows, macOS, and Linux. We enjoy writing many open source projects. Sometimes we opt to use our internal TeamCity CI server and other times we use Travis CI for more transparency. This post will help you get your .NET Core application building in Travis CI by showing you the files you need in your publicly accessible Git repository.
You need a build script to the root of our repository for Travis CI to execute. It is quite simple.
#!/usr/bin/env bash dotnet restore && dotnet build
You can add additional steps to the
build.sh to run tests, but this is the simplest command you need.
.travis.yml is used by the service to construct your build environment. Add this to the root of your repository.
language: csharp dist: trusty sudo: required mono: none dotnet: 1.0.1 script: - ./build.sh --quiet verify
We do a few things in the configuration file:
mono; we are running .NET Core now
Note, we could forgo calling our
build.sh file and put the calls to
dotnet in the script section of our configuration. We chose not to in this case. The Trusty version of Ubuntu is 14.04. Ubuntu 16.04 was released back in April of 2016, but Travis CI does not support it yet. Travis CI default distribution is 12.04, which is not supported by the .NET Core installer.
After adding the files, you can follow this basic tutorial to setting up your project. If everything goes right, you should have a successful build on Travis CI. It really takes very little effort and will help your contributors know if they broke the application.