-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation error #8347
Comments
Hi @26mmangan! I'm sorry to hear you're running into problems. This might be an issue with PATH. Check the output of the Let us know how that goes. |
Can you show your system path? Also, show the results of this: C:\Users\rich>where dotnet
C:\Program Files\dotnet\dotnet.exe
C:\Users\rich>dotnet --version
8.0.100-preview.1.23115.2 |
The x86 is listed first there. Can you confirm what kind of machine you have? Type system type on your windows toolbar and open the System Information app. |
I have a x64 machine. Will do. |
Let us know if after the change, you can type dotnet commands. Make sure to open a new window. |
what |
but x86 is still showing up as first, so maybe the changes weren't saved, Can you double check the environment variables again? |
Usually that step by step works 😢 @richlander any other suggestions? |
Make sure to close the command prompt after changing the values in the environment variables. |
I did, I restarted it twice |
You can just delete the x86 one. It isn't useful. Also, it is |
Done, alright thanks |
And type |
Can you double check that the x86 is not present in both the System and User I have no idea what is causing this. It is very odd. |
That looks correct. Can you show the output of |
That looks right. Please show me |
This is the problem. You have an old 5.0 install on your machine that you need to remove. Perhaps this was installed by Visual Studio. If you have that, can you go into the Visual Studio Installer and remove it from the installed components? |
How do I do this? |
But the set path above is showing x86 first @richlander. Is that expected? |
This is VS Code. Do you have Visual Studio also installed? |
@26mmangan it appears that you have The easiest way to remove would be from Control Panel or Settings app, but if they don't show there, here's the alternative.
After .NET 5 is uninstalled, open a new command prompt and try the commands that were failing, or producing unexpected results, previously, i.e. |
You re-installed .NET 5? Is there a reason for that? Also, you seem to have 5.0.10. Is there a reason you are using that version? If you need .NET 5, can you install 5.0.17? https://dotnet.microsoft.com/en-us/download/dotnet/5.0 |
You still have 5.0 installed. Did you try running the 5.0 installer and choosing uninstall? |
@26mmangan can you share the outputs of |
Thanks - it is odd. I understand that you installed and uninstalled 5.0.408 SDK, but have you tried to install (or repair) x86 version of 5.0.10 WindowsDesktop installer, and then run the same installer to It would be good to go through those steps and see if there is any improvement in I presume you are starting a new command window after each of these install/uninstall operations, as that is necessary to get the updated values of environment variables, like PATH. |
That's great news! |
This looks resolved. Sorry that this was so hard. |
Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/create
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
The text was updated successfully, but these errors were encountered: