-
Notifications
You must be signed in to change notification settings - Fork 447
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
.NET SDK installation fails when using winget #16834
Comments
The path for one of the log files is too long: 262 (max path is 260). Can you redirect WinGet to generate the log in different folder? The problem is that WinGet is adding a very long prefix to the log files, so you end up with this Try passing |
cc @mthalman |
Looks like there's a winget issue which redirects some blame back to the dotnet SDK installer:
I don't want to insert myself into an internal debate between two Microsoft teams, so I offer no opinion as to which team is at fault, but I would encourage the teams to discuss. |
The standard log file format for the SDK would be something like |
Old issue triage: Assuming this is no longer an issue as winget has been updated since then. |
I believe this was still happening recently, I just haven't encountered it because I no longer need the SDK installed separately. A contributing factor may be that I had an especially long folder name in |
I attempted to upgrade .NET SDK 6.0.410 to 6.0.411 using winget on the command line, but it failed:
However, when I downloaded the SDK installer directly from https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.411-windows-x64-installer and ran it, it succeeded. It seems like there may be some difference about winget that causes the installer to fail. I will try to attach the logs from the failed installation run: dotnet_sdk_install_logs.zip
I cannot replicate the scenario any further since I upgraded manually, but please let me know if there are any questions.
The text was updated successfully, but these errors were encountered: