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

Fix parsing -preview versions in the registry when installed via Visual Studio #1914

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

nagilson
Copy link
Member

@nagilson nagilson commented Aug 13, 2024

This issue is pointed out to me by @webreidi and became visible today.

Internal Visual Studio build 17.11.04 shipped with a preview SDK 8,0.400-preview.0.
This does not impact customers but impacts internal people who try to install using our tool.
Our logic worked for preview SDKs installed by users but not the ones installed by Visual Studio.

When opening up the registry to check if we needed to do this installation, we would see the version as 8.0.400-preview.0 and try to cast 400-preview to a number. This would fail and we would not install the SDK.

We can fix this in several ways. One way is to improve some logic around parsing the preview text, but that text is not necessary to handle. So instead, we can just trim out the -preview text and cause it to work.

Before
image

After
image

@nagilson nagilson requested a review from smitpatel August 13, 2024 22:16
@nagilson nagilson enabled auto-merge (squash) August 13, 2024 22:21
@nagilson nagilson merged commit 76d021e into dotnet:main Aug 13, 2024
7 checks passed
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.

2 participants