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

Use dotnet --list-runtimes instead of version from dotnet --info #6175

Merged
merged 1 commit into from
Aug 19, 2023

Conversation

dibarbet
Copy link
Member

@dibarbet dibarbet commented Aug 19, 2023

Resolves #6167

The version that the old O# was picking up from dotnet --info actually was the runtime version. This happened to work for many of us because we had .net 8 installed which is higher than .net 7.

Instead of using SDK version and the version output by dotnet --info, we should actually just look at dotnet --list-runtimes (which is meant to be machine readable) to find a runtime higher than our desired runtime. Adapted from https://devdiv.visualstudio.com/DevDiv/_git/vs-green/pullrequest/491545

@dibarbet dibarbet marked this pull request as ready for review August 19, 2023 02:07
@dibarbet dibarbet requested a review from a team as a code owner August 19, 2023 02:07
@dibarbet dibarbet merged commit 0ba29bf into dotnet:main Aug 19, 2023
4 checks passed
@dibarbet dibarbet deleted the correctly_use_runtime_version branch August 19, 2023 02:53
@JoeRobich
Copy link
Member

I see this changed O# tests. Has this change been tested with O#?

@dibarbet
Copy link
Member Author

I see this changed O# tests. Has this change been tested with O#?

Only via the O# integration tests. What broke?

@JoeRobich
Copy link
Member

Only via the O# integration tests. What broke?

This is what I get for skimming a PR. Changes look good. Sorry for the interruption.

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

Successfully merging this pull request may close these issues.

Found dotnet version 7.0.10. Minimum required version is 7.0.100.
3 participants