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

Add API option to check version matches less strictly #1858

Open
nagilson opened this issue Jul 1, 2024 · 1 comment
Open

Add API option to check version matches less strictly #1858

nagilson opened this issue Jul 1, 2024 · 1 comment

Comments

@nagilson
Copy link
Member

nagilson commented Jul 1, 2024

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

@nagilson
Copy link
Member Author

nagilson commented Jul 1, 2024

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

1 participant