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

Commit 2c924c3

Browse files
committed
Don't run build stuff when restoring
1 parent 6f35b98 commit 2c924c3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

build.proj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@
155155
<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 -->
158-
<CallTarget Targets="GitInfoReport" />
158+
<CallTarget Targets="GitInfoReport" Condition="'$(PendingRestore)' != 'true'" />
159159
<!-- For now this is an informative version #, used to update CI -->
160-
<Message Text="Building version $(PackageVersion)" Importance="high" />
160+
<Message Text="Building version $(PackageVersion)" Importance="high" Condition="'$(PendingRestore)' != 'true'" />
161161

162162
<PropertyGroup>
163163
<GitInfoReportImportance>high</GitInfoReportImportance>
164164
</PropertyGroup>
165165

166166
<!-- Update AppVeyor build # to match the actual one being used -->
167167
<Exec Command="appveyor UpdateBuild -Version $(PackageVersion)"
168-
Condition=" '$(APPVEYOR)' == 'true' "
168+
Condition=" '$(APPVEYOR)' == 'true' and '$(PendingRestore)' != 'true' "
169169
ConsoleToMSBuild="true"
170170
ContinueOnError="WarnAndContinue" />
171171
</Target>

0 commit comments

Comments
 (0)