The purpose of this repo is to hold some scripts and files for bootstrapping a new .NET Core project. The goal is to have a consistent setup for projects where all you need to get started is to run:
init
build
run
Easily run tests from command-line or double-clicking test.bat
.
test
There are three files that can help configure Git and your text editors to work better together.
Share settings across team for encoding, indentation style and language specific rules.
Ignore files specific to .NET development.
Configure end-of-line and how git should diff certain file types it may be confused about.
Since running powershell scripts is awkward out of the box in Windows due to strict execution policies and no double-click to run behavior, these scripts are moved into Build
folder.
Instead, the most-used scripts are exposed with .bat
files in the root for easy access.
Arguably a best practice, instead of using custom tooling on your build server such as TeamCity or VSTS to build and run tests, it can be a good idea to run the exact same scripts as you run locally to avoid any differences in command parameters.
If you love debugging why a build or test case fails only on the build server, but Works On My Machine (tm) ¯_(ツ)_/¯, then you can freely disregard this advice.