Search code examples
.netvb.netuserappdatapath

Why apps within same solution get different AppData path


I have a one solution, and two projects inside it. Both projects exists in the same namespace, e.g. MyCompanyName. When I call

My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData

this method returns two different paths. First path is C:\Users\user\AppData\Roaming\MyCompanyName, second path is C:\Users\user\AppData\Roaming\MyCompanyFullName.

I should know, why? Thanks!


Solution

  • I've found the answer. If in project properties, in the assembly information, in the field "Organization" set company name, so current user application data is according to this name. If company name is missed, the current user application data is according to root namespace.