Any ideas on how to fix this? The path it is looking for the sdk is wrong. It should be C:\Program Files\dotnet\sdk\6.0.412 How can I influence the path where it is looking for the SDK?
An alternative to some of the answers above, there are instructions on how you can override that path in the dotnet-environment-variables documentation