title: Found .NET SDK, but did not find dotnet.dll
body: <p>I recently installed Visual Studio 2022 preview.</p>
  <p>Today I was in a workshop and there was some feature that didn't work, and it turned out it was because I had the preview version of .NET 6 installed.</p>
  <p>So I then uninstalled Visual Studio 2022 preview.</p>
  <p>Now, when I type dotnet --version (or other command like dotnet --info) in a command window, I get the following message:</p>
  <ul>
  <li>Found .NET SDK, but did not find dotnet.dll at [C:\Program Files\dotnet\sdk\6.0.100-preview.7.21379.14\dotnet.dll]</li>
  </ul>
  <p>I have tried to repair, and then reinstall DotNet SDK 5.0.400. Restarted machine a few times as well, to no avail.</p>
  <p>I am guessing the uninstaller removed the files, but failed to restore the registry to the previous version.</p>
  <p>How do I fix this?</p>