Alter RuntimeComponentManifest.targets to use the correct runtime pack#56431
Alter RuntimeComponentManifest.targets to use the correct runtime pack#56431radical merged 7 commits intodotnet:mainfrom
Conversation
When trying to process what runtime components are available, we were assuming %(ResolvedRuntimePack.PackageDirectory) would give us the correct Microsoft.NETCore.App runtime pack. Unfortunately, the ordering was likely altered when we started setting <KnownRuntimePack> items in the Mono workload. Since relying on position of the items isn't reliable, we will instead use %(ResolvedFrameworkReference) to tell us which runtime pack is active and where it's located. Fixes dotnet#56299
|
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
lambdageek
left a comment
There was a problem hiding this comment.
Should we have a check somewhere that @(ResolvedFrameworkReference->WithMetadataValue('Identity', 'Microsoft.NETCore.App')->Count()) == 1 ?
rolfbjarne
left a comment
There was a problem hiding this comment.
If I apply this fix locally, it works.
|
Wasm workload tests are failing with: And that seems to be because the json path is: Note the newlines in the path. fix:
|
src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Sdk/RuntimeComponentManifest.targets
Outdated
Show resolved
Hide resolved
src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Sdk/RuntimeComponentManifest.targets
Show resolved
Hide resolved
src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Sdk/RuntimeComponentManifest.targets
Outdated
Show resolved
Hide resolved
|
wasm Workload tests failing with:
I'll try this out locally. |
…the framework reference
When trying to process what runtime components are available, we were assuming %(ResolvedRuntimePack.PackageDirectory) would give us the correct Microsoft.NETCore.App runtime pack. Unfortunately, the ordering was likely altered when we started setting items in the Mono workload. Since relying on position of the items isn't reliable, we will instead use %(ResolvedFrameworkReference) to tell us which runtime pack is active and where it's located.
Fixes #56299