In MAUI, how to customize the folder name where app's cache and data are stored?

Viewed 39

The app's cache and data directories in MAUI is: C:/Users/{UserName}/AppData/Local/Packages/{GUID}_{hash}/{LocalCache/LoaclState}

When I create a MAUI project, build and run it. A folder will be generated in Packages/ named {GUID}_{hash} like B4B241BA-CD04-4CE4-83ED-FD99159F72A0_9zz4h110yvjzm

I want to find a way to avoid using GUID as the name of a folder. Because it makes it hard for me to discern which folder corresponds to which app.

I have tried to modify the property ApplicationIdGuid in .csproj. But it didn't work at all.

I have found some apps not use GUID as folder name, like Bandisoft.com.15700C60EE320_dytvnjx3s1h08, TelegramMessengerLLP.TelegramDesktop_t4vj0pshhgkwm, so I think there maybe someway to achieve that.

1 Answers

As Jason suggested, you could create a shortcut.

Related