Skip to content

Commit 6902ca8

Browse files
committed
Check if nuget.exe is installed in build_nuget.cmd
1 parent 3968a7f commit 6902ca8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build_nuget.cmd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
rem @echo off
22

3+
nuget >nul 2>&1
4+
if %errorlevel% neq 0 (
5+
echo NuGet is not available. Please install NuGet CLI from https://www.nuget.org/downloads and add it to PATH.
6+
exit /b 1
7+
)
8+
39
set target_version=%1
410
if "%target_version%"=="" set target_version=3.0.0.0
511

0 commit comments

Comments
 (0)