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

Exception when previously unknown .NET Core runtime is found on machine #1223

Closed
CharliePoole opened this issue Sep 24, 2022 · 1 comment
Closed

Comments

@CharliePoole
Copy link
Collaborator

This has been a long-standing problem. It came up when .NET 6.0 previews became available and again with .NET 7.0. Each time we fixed it by adding the new version to the code. It will surface again when .NET 8.0 previews are installed. The worst thing about this is error is that it appears whenever we run the console on a machine, even if the tests don't reference the non-supported runtime.

We should change the way we handle this situation entirely. If an install directory contains a runtime we don't recognize, we should simply ignore it. The engine will no longer recognize that version (e.g. 8.0) as an installed runtime. An error will only appear if we try to run tests built against that new runtime, saying it is not yet supported.

In order to facilitate debugging, we should log an error in the internal trace when such a runtime is discovered.

Note that for 4.0, I"m hoping to move away from the complex analysis of the registry and the install directories and to just rely on "dotnet --list-runtimes."

@CharliePoole
Copy link
Collaborator Author

This issue has been resolved in version 3.16.0

The release is available on:
GitHub.
NuGet packages are also available NuGet.org and
Chocolatey Packages may be found at Chocolatey.org

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