forked from duosecurity/duo_api_csharp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.cmd
More file actions
16 lines (11 loc) · 710 Bytes
/
build.cmd
File metadata and controls
16 lines (11 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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