Make restore of external 2-pass
authorericstj <ericstj@microsoft.com>
Thu, 21 Feb 2019 00:54:05 +0000 (16:54 -0800)
committerEric StJohn <ericstj@microsoft.com>
Thu, 21 Feb 2019 21:08:34 +0000 (13:08 -0800)
Commit migrated from https://github.com/dotnet/corefx/commit/c8e44c3d027d0539e7f9091336cc48e59e7d03e8

src/libraries/build.proj
src/libraries/external/Directory.Build.props
src/libraries/external/netstandard/netstandard.depproj

index 6e23026..3d2f713 100644 (file)
@@ -27,6 +27,7 @@
       <_RestoreProjects Include="external\dir.proj" />
     </ItemGroup>
 
+    <MSBuild Projects="@(_RestoreProjects)" Properties="$(ProjectProperties);DefaultBuildAllTarget=Restore" />
     <MSBuild Projects="@(_RestoreProjects)" Properties="$(ProjectProperties)" />
   </Target>
 
index 5971cb9..9564ed9 100644 (file)
@@ -9,4 +9,12 @@
     <!-- let us control the output path -->
     <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
   </PropertyGroup>
+  
+  <!-- don't bring in props/targets from packages, we're not consuming them we're
+       deploying them -->
+  <ItemDefinitionGroup>
+    <PackageReference>
+      <ExcludeAssets>Build</ExcludeAssets>
+    </PackageReference>
+  </ItemDefinitionGroup>
 </Project>
\ No newline at end of file
index 3827443..efc29e5 100644 (file)
@@ -10,7 +10,7 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="NETStandard.Library" ExcludeAssets="Build">
+    <PackageReference Include="NETStandard.Library">
       <Version>$(NETStandardLibraryPackageVersion)</Version>
     </PackageReference>
   </ItemGroup>