Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 8fb449c

Browse files
author
Larry Golding
committed
build.cmd should always check for NuGet package updates
build.cmd was skipping the NuGet restore command if the src\packages directory existed at all, regardless of what was in it. As a result, the command line build would fail whenever we updated a package (as, for example, I did yesterday in updating to Roslyn 1.0.0-rc3). Modify build.cmd to restore packages unconditionally. The fraction of a second it takes to discover that all packages are up to date is not significant.
1 parent 52bdcfc commit 8fb449c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

build.cmd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
3232
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
3333

3434
:restore
35-
IF EXIST "%~dp0src\packages" goto build
35+
IF NOT EXIST src\packages md src\packages
3636
%CACHED_NUGET% restore %SOLUTION_PATH%
3737

38-
:build
39-
4038
%BUILD_TOOLS_PATH% %SOLUTION_PATH% /p:OutDir="%~dp0bin" /nologo /m /v:m /flp:verbosity=normal %*

0 commit comments

Comments
 (0)