Cake + .NET Core = Write Once, Build Anywhere
summary
Demonstrates a 76-line C# Cake build script that runs cross-platform: dotnet core restore then dotnet core build, runs 25 tests (all pass), reads version via XPath, runs dotnet core publish into a publish folder, zips the output and uploads it to Azure using curl against the zip deploy endpoint (with --fail) with credentials read from environment variables. The same script runs locally on macOS, on a Linux CI agent (TeamCity) and successfully deploys the ASP.NET Core app to Azure.
AI-written summary · about
chapters (15)
- 0:00Intro
- 1:30Cake
- 7:05Crossplatform
- 7:55Demo
- 11:45VS Code
- 27:58Compile
- 28:28Package
- 40:28Publish Compilation
- 41:43Deploy
- 46:18Upload
- 48:23URI Object
- 49:03POST Object
- 53:13Invocation
- 53:33Console
- 54:33Testing
related talks
55mA Piece of Cake - C# powered cross platform build automation
38mCooking the Cake for NuGet Packages
01h 02m.NET on Azure
44mHow Real is this Cross Platform .NET Thing Really?
01h 05mFrom zero to CD in 60 minutes
01h 03mContinuous Delivery in Azure
48mGitHub Actions DevOps Pipelines as code using C#
39mGitHub Actions DevOps Pipelines as Code using C# and Cake SDK
