private string GetDataDirLocation() { Assembly thisAssembly = Assembly.GetCallingAssembly(); CommonApplicationData cad = new CommonApplicationData(thisAssembly, allUsers: false); return(cad.ApplicationFolderPath); }
private void SetDataDirLocation() { Assembly thisAssembly = Assembly.GetEntryAssembly(); CommonApplicationData cad = new CommonApplicationData(thisAssembly, allUsers: false); AppDomain.CurrentDomain.SetData("DataDirectory", cad.ApplicationFolderPath); }