© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•11mo ago•
1 reply
Kev

Maui - pre build targets iOS

I have a Maui app. It’s a white label application that will have many brand styles applied to it.

To do this I am running a target in the csproj to copy images and files around pre build

For example like this. This is an example of it.

<Target Name="CopyData" BeforeTargets="PrepareForBuild”>

<Exec Command="cp -f ../SharedBrandData/$(BrandName)/Images/logo.svg Resources/Images/logo.svg" />

</Target>

This is working perfectly on Android but PrepareForBuild doesn’t exist on iOS. None of the BeforeTargets I’ve found on iOS do the same thing. They all seem to run after the resizetizer. I need to copy images before this runs.

Has anyone managed to do this on iOS?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ .NET MAUI iOS Hot Restart
C#CC# / help
3y ago
✅ Troubleshooting MAUI build errors
C#CC# / help
2y ago
(Maui) Native swipe back on iOS
C#CC# / help
2y ago
MAUI runtime identifier build hell
C#CC# / help
11mo ago