-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c71a3c
commit f48fdf2
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
:: Example script for building without the full Visual Studio | ||
|
||
:: Install prerequisites using chocolately package manager | ||
choco install -y visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools;includeRecommended" nuget.commandline nunit-console-runner | ||
|
||
:: Add build tools to path | ||
IF "'%VSINSTALLDIR%'" EQU "''" (call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat") else (echo "vcvars already set") | ||
|
||
:: Restore nuget packages | ||
nuget restore | ||
|
||
:: Build debug version of the project | ||
msbuild duo_api_csharp.sln /p:Configuration=Debug /p:Platform="Any CPU" | ||
|
||
:: Run unit tests | ||
vstest.console.exe .\test\bin\Debug\DuoApiTest.dll |