Skip to content

Commit

Permalink
Add build.cmd file (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyparker committed Sep 26, 2023
1 parent 3c71a3c commit f48fdf2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.cmd
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

0 comments on commit f48fdf2

Please sign in to comment.