Skip to content

Commit

Permalink
[Blazor] Account for Maui multi-rid builds (#9348)
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercn authored Aug 12, 2022
1 parent 1d36a08 commit ef5e813
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,13 @@
</ItemGroup>
</Target>

<!-- Microsoft.Android.Sdk.AssemblyResolution.targets _ResolveAssemblies triggers a nested build to
resolve publish files in a Maui specific way and that breaks elements depending on the '$(IntermediateOutputPath)'.
This target detects we are running inside one of such builds and adjust the relevant paths. -->
<Target Name="_AdjustStaticWebAssetPathBaseWhenBuildingWithRid" BeforeTargets="ResolveStaticWebAssetsConfiguration" Condition="'$(_OuterIntermediateOutputPath)' != ''">
<PropertyGroup>
<_StaticWebAssetsManifestBase>$(_OuterIntermediateOutputPath)</_StaticWebAssetsManifestBase>
</PropertyGroup>
</Target>

</Project>

0 comments on commit ef5e813

Please sign in to comment.