Search code examples
c#.netfontsmaui

Font file name error "APT0003 Invalid file name: It must contain only [^a-zA-Z0-9_.]+."


After creating a Maui app I got an error which says "APT0003 Invalid file name: It must contain only [^a-zA-Z0-9_.]+."

I tried to rename the file to acceptable name but nothing seems to work. Any recommendations?

enter image description hereenter image description here


Solution

  • The thing that solved the problem is updating the Visual Studio version. Also Android has issues with "-" in file names which is a problem because the default naming is with it.