Only the .NET 6 SDK is required to compile the project. This can be installed through one of the following methods
choco install dotnet-6.0-sdk
# Needs to be removed, in order to resolve issue with Nuget being preconfigured wrong. Will
# auto-regenerate on first run.
Remove-Item "C:\Users\$Env:USERNAME\AppData\Roaming\NuGet\nuget.config"
The latest .NET 6.0 SDK can be found here : .NET 6.0 SDK - Windows x64 Installer
The project can be compiled by running the following in the repository root (the directory with the .sln file). This will generate an .exe that can be run locally. Subsequent dotnet build
commands will perform incremental compilation.
dotnet build
Typically, for development you will want to run the project in Debug
mode. This mode will run dramatically slower than Release
, however it will leave useful debugging information in the compiled assembly. Running the following will detect and changes, and both build
and run
the project :
dotnet run --project .\BuildBackup\BuildBackup.csproj
Alternatively, to run the project at full speed with all compilation optimizations enabled, add the additional --configuration Release
flag:
dotnet run --project .\BuildBackup\BuildBackup.csproj --configuration Release
To compile and run all tests in the entire repo, run the following command:
dotnet test