-
Notifications
You must be signed in to change notification settings - Fork 5.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
Windows dotnet ps1 script doesn't install system wide in Program Files\dotnet #44409
Comments
Hello. To be clear, you're saying that the troubleshooting section talking about not being able to find dotnet should be enhanced to indicate that it might not always be "program files." |
Under the troubleshooting section, it states it will be installed onto Program Files. Under this section: It's showing the script installs onto Program Files, when it actually installs onto the user's AppData.
Adding it to the PATH should use the user's path:
But the bug in the summary shows it won't be installed there and it was decided that bug won't be fixed. If it needs to be installed onto Program Files, they have to use the Windows Installer instead (AFAIK): |
Type of issue
Other (describe below)
Description
The page has incorrect information about the install path for dotnet 8.
From this bug report, the ps1 installs to the local user only, e.g. C:\Users\username\AppData\Local\Microsoft\dotnet\dotnet.exe
dotnet/install-scripts#17
There is no option to install it for all users at Program Files\dotnet
But this documentation page describes the location as Program Files\dotnet
https://learn.microsoft.com/en-us/dotnet/core/install/windows#install-with-powershell
If we look under the section "No .NET SDK was found", it claims the PATH should be to Program Files\dotnet, but we won't find .NET8 there.
After I installed .NET8 using the above power shell script, it was installed to local user, rather than Program Files.
After above power shell install, it doesn't work in cmd.exe or cygwin.
So when I ran on cmd.exe, I don't get .NET8:
Same on cygwin:
Page URL
https://learn.microsoft.com/en-us/dotnet/core/install/windows
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/install/windows.md
Document Version Independent Id
d11d0d14-8a03-50e4-5c00-9a4417ad4d0a
Article author
@adegeo
Metadata
Related Issues
Associated WorkItem - 363614
The text was updated successfully, but these errors were encountered: