Skip to content
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

Cancelled Installation of .NET 8.0.10. The requested and or resolved version is invalid. #2017

Closed
rhys-vdw opened this issue Nov 13, 2024 · 8 comments

Comments

@rhys-vdw
Copy link

rhys-vdw commented Nov 13, 2024

Describe the bug.

I see this when opening VSCode (project has not changed since yesterday)

Image

Cancelled Installation of .NET 8.0.10.
The requested and or resolved version is invalid.
Cancelled Installation of .NET 8.0.10.
The requested and or resolved version is invalid.
Cancelled Installation of .NET 8.0.10.
The requested and or resolved version is invalid.
Cancelled Installation of .NET 8.0.10.
The requested and or resolved version is invalid.
Cancelled Installation of .NET 8.0.10.
The requested and or resolved version is invalid.
Cancelled Installation of .NET 8.0.10.
The requested and or resolved version is invalid.
Cancelled Installation of .NET 8.0.10.
The requested and or resolved version is invalid.
Cancelled Installation of .NET 8.0.10.
The requested and or resolved version is invalid.

Please attach log file(s) here if you have any.

20241113T115848.zip
The log file location should be copied to your clipboard if you came from VS Code.

Reproduction Steps

Open project in VSCode, observe errors

Expected Behavior

I don't get errors.

Exceptions & Errors (if any)

(as above)

.NET Install Tool Version

v2.2.2

Your operating system? Please provide more detail, such as the version and or distro above.

Windows

VS Code Version

1.95.2

@Leonardo-Ferreira
Copy link

same here... extra details: im on Mac Sonoma 14.7

@Ed-Gilmour
Copy link

I'm getting these errors as well
Cancelled Installation of .NET 8.0.10. The requested and or resolved version is invalid.

@magicjar
Copy link

For a temporary workaround, you can install the latest .NET SDK manually (8.0.11).
This solved the issue for me.

@Matt-Crow
Copy link

I am encountering the same problem.
My operating system is Mac OS Sequoia v15.1 .
This error began around when the .NET Install Tool, C#, and C# Dev Kit VSCode extensions by Microsoft updated, so one of those might have an issue.

Hope this helps!

@sweetjellystudio
Copy link

I encountered same issue.
Downgrading the C# extension to version 2.50.27, instead of the latest 2.55.28, resolved the issue.

@mccaffers
Copy link

mccaffers commented Nov 13, 2024

Setting dotnetAcquisitionExtension.existingDotnetPath helped fix this issue for me:

Image

   "dotnetAcquisitionExtension.existingDotnetPath": [
        {"extensionId": "msazurermtools.azurerm-vscode-tools", "path": "/usr/local/share/dotnet/dotnet"}
    ]

@kmnunley
Copy link

Duplicate of #2012

@nagilson
Copy link
Member

Thanks for your resolution everyone. I found the issue with the most comments and proposed a resolution here.
-> #2021 <- You can read how to resolve it, etc, here.

I'm gonna close this issue since this is a duplicate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants