Grunge
Grunge
CC#
Created by Grunge on 3/25/2025 in #help
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?
2 replies