-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use generated runtime.json when building shared framework packages. (#…
…76068) * Use generated runtime.json when building shared framework packages. * Don't UpdateRuntimeJson on Build. * PR feedback. * Update Microsoft.NETCore.Platforms.csproj Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
- Loading branch information
1 parent
0075639
commit cd2f0ff
Showing
6 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ | |
<AvoidRestoreCycleOnSelfReference>true</AvoidRestoreCycleOnSelfReference> | ||
<!-- TODO: Remove with AvoidRestoreCycleOnSelfReference hack. --> | ||
<PackageValidationBaselineName>$(MSBuildProjectName)</PackageValidationBaselineName> | ||
<BeforePack>GenerateRuntimeJson;UpdateRuntimeJson;$(BeforePack)</BeforePack> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tmds
Author
Member
|
||
|
||
<_generateRuntimeGraphTargetFramework Condition="'$(MSBuildRuntimeType)' == 'core'">$(NetCoreAppToolCurrent)</_generateRuntimeGraphTargetFramework> | ||
<_generateRuntimeGraphTargetFramework Condition="'$(MSBuildRuntimeType)' != 'core'">net472</_generateRuntimeGraphTargetFramework> | ||
|
@@ -44,7 +43,7 @@ | |
|
||
<ItemGroup> | ||
<Content Condition="'$(AdditionalRuntimeIdentifiers)' == ''" Include="runtime.json" PackagePath="/" /> | ||
<Content Condition="'$(AdditionalRuntimeIdentifiers)' != ''" Include="$(IntermediateOutputPath)runtime.json" PackagePath="/" /> | ||
<Content Condition="'$(AdditionalRuntimeIdentifiers)' != ''" Include="$(BaseOutputPath)runtime.json" PackagePath="/" /> | ||
<Content Include="$(PlaceholderFile)" PackagePath="lib/netstandard1.0" /> | ||
</ItemGroup> | ||
|
||
|
@@ -58,12 +57,12 @@ | |
|
||
<UsingTask TaskName="GenerateRuntimeGraph" AssemblyFile="$(_generateRuntimeGraphTask)"/> | ||
|
||
<Target Name="GenerateRuntimeJson" Condition="'$(AdditionalRuntimeIdentifiers)' != ''"> | ||
<Target Name="GenerateRuntimeJson" AfterTargets="Build" Condition="'$(AdditionalRuntimeIdentifiers)' != ''"> | ||
<MakeDir Directories="$(IntermediateOutputPath)" /> | ||
<GenerateRuntimeGraph RuntimeGroups="@(RuntimeGroupWithQualifiers)" | ||
AdditionalRuntimeIdentifiers="$(AdditionalRuntimeIdentifiers)" | ||
AdditionalRuntimeIdentifierParent="$(AdditionalRuntimeIdentifierParent)" | ||
RuntimeJson="$(IntermediateOutputPath)runtime.json" | ||
RuntimeJson="$(BaseOutputPath)runtime.json" | ||
UpdateRuntimeFiles="True" /> | ||
</Target> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tmds because of this change, the
UpdateRuntimeJson
target doesn't run anymore. Was that intentional? Asking as #82125 was just filed and this is likely the suspect.