A cross platform Web API written in .NET Core using the .NET Core SDK. This can be used as a reference solution for an application that runs on multiple operating systems including Windows, Linux and MacOS. The solution has been created using the .NET Command Line Interface (CLI) that builds and runs in Visual Studio Code. The solution contains a .NET Core Web API project and a associated a XUnit test project. Other feature include:
- Cross platform build scripts using Cake
- Cross platform CI support using Travis CI and AppVeyor (see above)
- Docker support for Linux and Windows Images, using Multi-Stage builds
- Strongly typed Theory Data for XUnit tests
| Build System | Host | Build Agent | Status |
|---|---|---|---|
| AppVeyor | Windows | Cloud | |
| Travis CI | Trusty | Cloud |
To run the build scripts (written in Cake) locally, run the following in PowerShell:
./build.ps1 --BuildNumber="1" --DockerFile="Dockerfile.windows"
Alternatively, run the following on the bash shell:
./build.sh --BuildNumber="1"
- Fork it!
- Clone it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request :D