title: How can I get folder name under AppData/Local/Packages in MAUI?
body: <p>I'm making a simple git tool use MAUI.</p>
  <p>When I use <code>Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);</code></p>
  <p>I get <code>&quot;C:/Users/{MyName}/AppData/Roaming&quot;</code>.</p>
  <p>And then I want to save some file at <code>Roaming/{MyAppName}/{Files}</code>;</p>
  <p>But Windows will redirects this path to <code>&quot;C:/Users/{MyName}/AppData/Local/Packages/{GUID}_{hash}/LocalCache/Roaming/{MyAppName}/{Files}&quot;</code>;</p>
  <p>Now, I want to process git to do something with my files in myApp, but I don't kown how to get the redirected path(<code>Package/{GUID}_{hash}/LocalCache/Roaming</code>).</p>
  <p>The {GUID}_{hash} in my computer is like that <code>5DDBD798-8CC0-490D-A71B-C2F900533A12_9zz4h110yvjzm</code>;</p>
  <p>I have learned from <a href="https://stackoverflow.com/questions/55535634/duplicate-appdata-local-packages-folders">another question</a> that
  the hash code is generated from the package and publisher identify information in the application package manifest.I cannot change or set it directly and code should not rely on its value.</p>
  <p>So it's obviously not a good solution to hard code the path like what I do now:</p>
  <pre><code>private string _localRepoPath = &quot;C:/Users/MyName/AppData/Local/Packages/5DDBD798-8CC0-490D-A71B-C2F900533A12_9zz4h110yvjzm/LocalCache/Roaming/MyTool/Files&quot;;
  </code></pre>
  <p>Summary:</p>
  <ol>
  <li>How to get {GUID}_{hash} use C# code.</li>
  <li>I saw many Folders in Packages/ are start with AppName not GUID, how can I use my AppName as the folder name. Like these: <code>Microsoft.OneDriveSync_8wekyb3d8bbwe  Microsoft.OneDriveSync_8wekyb3d8bbwe  Microsoft.BingWeather_8wekyb3d8bbwe</code></li>
  </ol>