I'm working on a Maui Blazor project on Windows, and I wanted to add my logo (Png format) for this project.
So in package.appxmanifest > Visual Assets, I added my logo (name: store_logo.png).
Visual Studio recreates my logo in different size and aspect (ex:targetsize-24,unplated), and assigns a new file name.
But when i wanted to build my project, an error occured:
One or more invalid file names were detected. File names must be lowercase, start and end with a letter character, and contain only alphanumeric characters or underscores: $placeholder$.altform-unplated_targetsize-16, $placeholder$.altform-unplated_targetsize-24, $placeholder$.altform-unplated_targetsize-256, $placeholder$.altform-unplated_targetsize-32, $placeholder$.altform-unplated_targetsize-48, $placeholder$.scale-100, $placeholder$.scale-125, $placeholder$.scale-150, $placeholder$.scale-200, $placeholder$.scale-400, $placeholder$.targetsize-16, $placeholder$.targetsize-24, $placeholder$.targetsize-256, $placeholder$.targetsize-32, $placeholder$.targetsize-48 ChronosTasker C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\6.0.419\targets\Microsoft.Maui.Resizetizer.targets
I think the "-" character is causing this error.
But how can I use different target sizes and unplated icons, in my project, if file names cause this issue?
Thank you.
Regards, Samih