dotnet / dotnet/vscode-dotnet-runtime

Add API option to check version matches less strictly

Open
#1,858 1 comment 0 reactions 0 assignees View on GitHub
feature-request P1
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

### Is your feature request related to a problem? Please describe.

When making an API call and a generic version is given such as 8.0 we must resolve this using the server to a more specific version. We then check our existing installs to see if that version is available.

### A clear and concise description of what you want to happen. Include any alternative solutions you've considered.

This would be part of `IDotnetAcquireContext` as the option boolean, which is undefined/false by default, as `allowAlternativeVersions`.

### Describe the solution you'd like

If the user is offline but had installed .NET successfully before then we should not fail. The best way to do this would be to add an optional flag to our API (to prevent breaking others who may rely on this expectation of only accepting the latest .NET install) that would skip the online check for versions and just accept any version as a match that has the same major.minor.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.