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

Commit 6f35b98

Browse files
committed
Don't fail on restore if packages are missing since it's expected
1 parent 2901dae commit 6f35b98

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ if "%VisualStudioVersion%" == "" (
7676
)
7777

7878
@echo on
79-
msbuild /nologo /nodeReuse:%NodeReuse% /t:"%MSBuildTarget%" /p:Configuration="%BuildConfiguration%" %MSBuildAdditionalArguments%
79+
msbuild /nologo /nodeReuse:%NodeReuse% /t:"%MSBuildTarget%" /p:target="%MSBuildTarget%" /p:Configuration="%BuildConfiguration%" %MSBuildAdditionalArguments%
8080
@echo off
8181
if ERRORLEVEL 1 (
8282
echo.

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
StandardOutputImportance="low"
153153
Condition=" '$(PendingRestore)' == 'true' " />
154154

155-
<Error Text="Build script NuGet packages were missing and were just restored. Please run the build again." Condition=" '$(PendingRestore)' == 'true' "/>
155+
<Error Text="Build script NuGet packages were missing and were just restored. Please run the build again." Condition=" '$(PendingRestore)' == 'true' and '$(target)' != 'Restore' "/>
156156

157157
<!-- Invoke GitVersion just like the project-level targets do -->
158158
<CallTarget Targets="GitInfoReport" />

0 commit comments

Comments
 (0)