Skip to content

Commit 0e80639

Browse files
committed
!fixup! Restore TestCommon project earlier
1 parent ac363b5 commit 0e80639

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Runtime.msbuild

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,15 @@
7777
</ItemGroup>
7878

7979
<Message Text="Restoring NuGet packages..." Importance="High" />
80+
81+
<!-- Use Restore target first to avoid attempt to restore TestCommon using NuGet.exe. -->
82+
<MSBuild Projects="@(_ProjectsToRestore)" Targets="Restore"
83+
BuildInParallel="$(BuildInParallel)"
84+
Condition=" '$(BuildPortable)' == 'true' "
85+
Properties="Configuration=$(Configuration);CodeAnalysis=$(CodeAnalysis);StyleCopEnabled=$(StyleCopEnabled);VisualStudioVersion=$(VisualStudioVersion)" />
8086
<Exec Command='"$(NuGetExe)" restore "%(_NuGetPackagesAndSolutions.Identity)" ^
8187
-PackagesDirectory packages -NonInteractive ^
8288
-Verbosity quiet -ConfigFile "$(MSBuildThisFileDirectory)\.nuget\NuGet.Config"' />
83-
<MSBuild Projects="@(_ProjectsToRestore)" Targets="Restore"
84-
BuildInParallel="$(BuildInParallel)"
85-
Condition=" '$(BuildPortable)' == 'true' "
86-
Properties="Configuration=$(Configuration);CodeAnalysis=$(CodeAnalysis);StyleCopEnabled=$(StyleCopEnabled);VisualStudioVersion=$(VisualStudioVersion)" />
8789
</Target>
8890

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

0 commit comments

Comments
 (0)