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 warning when targeting 7.0 in 17.3 and remove 7.0 from the list of supported targets #28224

Merged
merged 5 commits into from
Oct 6, 2022

Conversation

marcpopMSFT
Copy link
Member

@marcpopMSFT marcpopMSFT commented Sep 28, 2022

Description

Targeting 7.0 will not work in 17.3 because of source generators that will light up when targeting net7.0. We're not sure the exact error experience. This PR will provide a warning message to customers and make that option not show up in the property pages either.

Customer Impact

New warning when targeting 7.0 and using 17.3 MSBuild. Customers won't be able to swtich to use net7.0 from the VS properties.

Regression

No

Risk

Low. This is already not supported

Testing

manual/automated

… 17.4. Switching to check msbuild version as that works here though not sure what we do in the future if we truly need vs version.
@marcpopMSFT
Copy link
Member Author

@dsplaisted it turns out VisualStudioVersion is set to 17.0 even in 17.4. We can't rely on that property. I switched to using MSBuild instead as that seems to work but pinging you to raise visibility here for this.

@dsplaisted
Copy link
Member

@dsplaisted it turns out VisualStudioVersion is set to 17.0 even in 17.4. We can't rely on that property. I switched to using MSBuild instead as that seems to work but pinging you to raise visibility here for this.

Makes sense.

…r bad VSVersion logic.

Update the logic to consistently use the three part version (even though it doesn't matter)
@rbhanda rbhanda added this to the 7.0.0 milestone Oct 6, 2022
@marcpopMSFT marcpopMSFT merged commit 1ce7f36 into release/7.0.1xx Oct 6, 2022
@marcpopMSFT marcpopMSFT deleted the marcpopMSFT-warnonunsupportedtargeting branch October 6, 2022 20:16
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.

3 participants