Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dotnet iOS Export Process #100187

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,19 @@
<Target Name="PrepareBeforeIlcCompile"
BeforeTargets="IlcCompile">

<Copy SourceFiles="%(ResolvedRuntimePack.PackageDirectory)/runtimes/$(RuntimeIdentifier)/native/icudt.dat" DestinationFolder="$(PublishDir)"/>
<PropertyGroup>
<IcuFullSourceDir>%(ResolvedRuntimePack.PackageDirectory)/runtimes/$(RuntimeIdentifier)/native/icudt.dat</IcuFullSourceDir>
<IcuHybridSourceDir>%(ResolvedRuntimePack.PackageDirectory)/runtimes/$(RuntimeIdentifier)/native/icudt_hybrid.dat</IcuHybridSourceDir>
<IcuCustomSourceDir>$(MSBuildThisFileDirectory)icudt_custom.dat</IcuCustomSourceDir>

<IcuTarget Condition=" '$(TargetFramework)' == 'net8.0' OR '$(HybridGlobalization)' == 'false' AND Exists('$(IcuFullSourceDir)') ">full</IcuTarget>
<IcuTarget Condition=" '$(TargetFramework)' == 'net9.0' OR '$(HybridGlobalization)' == 'true' AND Exists('$(IcuHybridSourceDir)') ">hybrid</IcuTarget>
<IcuTarget Condition="Exists('$(IcuCustomSourceDir)')">custom</IcuTarget>
</PropertyGroup>

<Copy Condition=" '$(IcuTarget)' == 'full' " SourceFiles="$(IcuFullSourceDir)" DestinationFolder="$(PublishDir)"/>
<Copy Condition=" '$(IcuTarget)' == 'hybrid' " SourceFiles="$(IcuHybridSourceDir)" DestinationFolder="$(PublishDir)"/>
<Copy Condition=" '$(IcuTarget)' == 'custom' " SourceFiles="$(IcuCustomSourceDir)" DestinationFolder="$(PublishDir)"/>

<!-- We need to find the path to Xcode so we can set manual linker args to the correct SDKs
Once https://github.com/dotnet/runtime/issues/88737 is released, we can take this out
Expand Down