Skip to content

Commit

Permalink
Unescape PackageConflictPreferredPackages
Browse files Browse the repository at this point in the history
The MSBuild engine automatically escapes strings returned from tasks,
which was causing problems because the later task
`ResolvePackageFileConflicts` was expecting to be passed an array of
strings, rather than an array consisting of a single string with a bunch
of semicolons in it.
  • Loading branch information
rainersigwald committed Aug 19, 2021
1 parent 84efe5a commit fb094f4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,12 @@ Copyright (c) .NET Foundation. All rights reserved.

</ResolveTargetingPackAssets>

<PropertyGroup>
<!-- Unescape this semicolon-delimited ordered list so that it's passed as a list to targets
that consume it. -->
<PackageConflictPreferredPackages>$([MSBuild]::Unescape($(PackageConflictPreferredPackages)))</PackageConflictPreferredPackages>
</PropertyGroup>

<ItemGroup Condition="'$(RuntimeIdentifier)' == '' or '$(SelfContained)' != 'true'">
<PackageConflictPlatformManifests Include="@(PlatformManifestsFromTargetingPacks)" />
</ItemGroup>
Expand Down

0 comments on commit fb094f4

Please sign in to comment.