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 and simplify logic for setting the minimum VS version to display in the installer UI #44412

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

marcpopMSFT
Copy link
Member

Fixes #44360

Summary

When SDK and installer were separate repos, we had logic in installer to update the displayed minimum VS version required in the installer Ux. the problem is that we support running on N-1 but require N VS version to actually target the current version (ie we will load in 17.11 but require 17.12 to target net9.0). So logic was added to read that value and increment it but that logic didn't handle a two digit minor VS version.

We noticed previously that this logic of calculating the value on the fly could end up producing a long addition math error (ie we'd get 17.900000000001) as the value when adding .1, let's just hard code this value.

Customer Impact

Currently it says you have to install 17.21 to target net9.

Regression

Yes

Testing

Build the installer locally

Risk

In the future when updating the minimum version, we now have to update it in multiple places but they are all in one repo.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Install untriaged Request triage from a team member labels Oct 23, 2024
@marcpopMSFT marcpopMSFT added Servicing-consider and removed untriaged Request triage from a team member Area-Install labels Oct 23, 2024
@marcpopMSFT marcpopMSFT changed the title Simplify logic for setting the minimum VS version to display in the installer UI Fix and simplify logic for setting the minimum VS version to display in the installer UI Oct 23, 2024
@wtgodbe
Copy link
Member

wtgodbe commented Oct 23, 2024

Approved on Teams

@marcpopMSFT
Copy link
Member Author

Confirmed working
image

@marcpopMSFT marcpopMSFT merged commit c39d144 into release/9.0.1xx Oct 23, 2024
31 checks passed
@marcpopMSFT marcpopMSFT deleted the marcpopMSFT-fixminversionUI branch October 23, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants