Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Invoke NuGet.targets directly to avoid race condition caused by issue…
Browse files Browse the repository at this point in the history
… in solution targets

See dotnet/msbuild#1587
  • Loading branch information
Nate McMaster committed Jan 20, 2017
1 parent d896eb9 commit f55ca3b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions build/restore.proj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- workaround https://github.com/Microsoft/msbuild/issues/1587 -->
<Project DefaultTargets="Restore">
<ItemGroup>
<RestoreGraphProjectInputItems Include="..\src\*\*.csproj" />
<RestoreGraphProjectInputItems Include="..\test\*\*.csproj" />
<RestoreGraphProjectInputItems Include="..\samples\*\*.csproj" />
<RestoreGraphProjectInputItems Include="..\tools\*\*.csproj" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\NuGet.targets" />
</Project>
9 changes: 8 additions & 1 deletion build/shade/_k-standard-goals.shade
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,14 @@ default SAMPLES_PROJECT_GLOB = "samples/*/*.csproj"

#repo-initialize target='initialize'
use-volatile-feed
dotnet-restore if='!NoRestore'
-//dotnet-restore if='!NoRestore'
@{
// workaround https://github.com/Microsoft/msbuild/issues/1587
if (!NoRestore)
{
Dotnet("msbuild \"" + Path.Combine(BASE_DIR, ".build/restore.proj") + "\"");
}
}

#target-dir-clean target='clean'
@{
Expand Down

0 comments on commit f55ca3b

Please sign in to comment.