This is a simple example of a build script with FlubuCore for a .NET Core open source project. Build script can be also used as a template.
It covers most common build steps that are needed in an open source project: Fetching build version from a file or using GitVersion, updating projects version, building projects in the solution, running tests, packing and publishing a nuget package. It also covers how to setup build in Appveyor, Travis CI, Github Actions and Azure devops.
- Travis configuration file Travis configuration includes publishing of nuget package.
- AppVeyor configuration file
- Github Actions configurataion file
- Azure DevOps configuration file
- .net core sdk 2.1 or greater is required
- Install FlubuCore global tool with command: 'dotnet tool install --global FlubuCore.GlobalTool'
- run 'Flubu Rebuild' in the folder where NetCoreOpenSource.sln is located.
For .net core 2.0 and lower use FlubuCore cli tool instead of FlubuCore global tool.
GitVersion - https://gitversion.readthedocs.io/en/latest/