dotnet / dotnet/vscode-dotnet-runtime
Aquire .NET runtime with invalid version does not prompt to configure manually
- Dominant language
- TypeScript
- Stars
- 209
- Forks
- 455
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug.
When running the Sample: Aquire .NET Runtime command and providing an invalid version. e.g. 'foo', there should be a prompt to enter the path for dotnet.exe.
### Please attach log file(s) here if you have any.
The log file location should be copied to your clipboard if you came from VS Code.
### Reproduction Steps
Run the 'Sample: Acquire .NET runtime' command. You should be asked to enter a Major.Minor version, please enter an invalid version (for example, 'foo').
You should see an error popup in the bottom right corner of VSCode, select the 'Configure manually'option as seen below.

You should be prompted to enter the path to dotnet.exe. You can enter the path to any dotnet.exe you have installed on your machine. If you have installed .NET with one of the default installers you can just press enter, as the dialog is prepopulated with the default install location.
### Expected Behavior
You should see a popup saying 'Set .NET path to { the path you entered }. Please reload VSCode to apply settings.'
Close and reopen VSCode. Run the command again ('Sample: Acquire .NET runtime' with an invalid version). You should see the message 'Using configured .NET path: { the path you entered }' in the output.
### Exceptions & Errors (if any)
_No response_
### .NET Install Tool Version
2.1.2
### Your operating system? Please provide more detail, such as the version and or distro above.
Windows
### VS Code Version
1.92.2
Contributor guide
Assessment
This issue has not been assessed yet.