Skip to content

Commit 80eb301

Browse files
committed
Add messages to ease debugging
nit: Shorten 'NuGet.exe restore' command lines slightly
1 parent 7a03356 commit 80eb301

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Runtime.msbuild

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,23 @@
8484

8585
<!-- Need three phases to build correctly due to dependencies between legacy and SDK-style projects -->
8686
<!-- 1. Special case NetCore project because an SDK test project depends on it. -->
87+
<Message Importance="High" Text='%0A&gt; "$(NuGetExe)" restore "src\System.Net.Http.Formatting.NetCore\packages.config" ...'
88+
Condition=" '$(BuildPortable)' == 'true' " />
8789
<Exec Command='"$(NuGetExe)" restore "src\System.Net.Http.Formatting.NetCore\packages.config" ^
8890
-PackagesDirectory packages -NonInteractive ^
89-
-Verbosity quiet -ConfigFile "$(MSBuildThisFileDirectory)\.nuget\NuGet.Config"'
91+
-Verbosity quiet -ConfigFile .nuget\NuGet.Config'
9092
Condition=" '$(BuildPortable)' == 'true' " />
9193
<!-- 2. Restore SDK-style test projects because legacy test projects depend on TestCommon. -->
94+
<Message Importance="High" Text='%0A&gt; dotnet restore "@(_ProjectsToRestore)"' />
9295
<MSBuild Projects="@(_ProjectsToRestore)" Targets="Restore"
9396
BuildInParallel="$(BuildInParallel)"
9497
Properties="Configuration=$(Configuration);CodeAnalysis=$(CodeAnalysis);StyleCopEnabled=$(StyleCopEnabled);VisualStudioVersion=$(VisualStudioVersion)" />
9598
<!-- 3. Restore remaining legacy projects. -->
99+
<Message Importance="High" Text='%0A&gt; "$(NuGetExe)" restore "@(_NuGetPackagesAndSolutions)" ...' />
96100
<Exec Command='"$(NuGetExe)" restore "%(_NuGetPackagesAndSolutions.Identity)" ^
97101
-PackagesDirectory packages -NonInteractive ^
98-
-Verbosity quiet -ConfigFile "$(MSBuildThisFileDirectory)\.nuget\NuGet.Config"' />
102+
-Verbosity quiet -ConfigFile .nuget\NuGet.Config' />
103+
<Message Importance="High" Text='' />
99104
</Target>
100105

101106
<!-- Pick the right Microsoft.Web.FxCop package to use and copy it to a standard location. -->

0 commit comments

Comments
 (0)