Currently in our Application is in .net 4.8
and we are using Application.UserAppDataPath
to get the path for the application data of a user.
if (TestManager.Singleton.IsUnitTestActive)
{ // Unit test is running...
string appUserPath = Application.UserAppDataPath;
this.Path = appUserPath.Substring(0, appUserPath.LastIndexOf('\\')) + "\\Config.xml";
}
recently we have migrated the logic into .net Standard 2.0
to make it crossplatform.
is there any way to find the path in .net Standard