Update target framework visibility conditions and remove VS-specific error message#52235
Conversation
|
@baronfel I'm trying to decide what to do with UnsupportedVisualStudioVersion as if I fix this, it'll tell customers to install 19.0 which is wrong for targeting 11 but if I set it to anything else, I have to remember to update it later. I wonder if the other error message is sufficient and we should just delete this one as it's too much of a hassle to upkeep. |
|
@marcpopMSFT maybe we should reconsider where this message lives - perhaps the project system, especially with that new targeting dialog that VS added in dev18, would be a better solution for the problem we're trying to solve here? |
|
@baronfel , @JakeRadMSFT lets start a mail thread and discuss this offline. |
|
@copilot after discussion we decided that we no longer want to have a specific VS warning message.
|
Done in commit 2c2779f. Removed:
All tests passing. |
Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
351d16c to
2e67664
Compare
Description:
Two items in this PR.
Currently customers in VS 17.14 will see net10 in the project system dropdown even though they can't actually target it without a warning.
After team discussion, we decided to simplify error handling by removing the VS-specific error message (NETSDK1209) that was too difficult to maintain.
Customer impact
Customers will no longer see net10.0 when using VS 17.14 so they can't accidentally retarget and then get warnings that it's not supported.
All customers will now receive a consistent error message when targeting unsupported framework versions, regardless of whether they're using Visual Studio or not.
Error Message
The current .NET SDK does not support targeting {0} {1}. Either target {0} {2} or lower, or use a version of the .NET SDK that supports {0} {1}. Download the .NET SDK from https://aka.ms/dotnet/download
Regression
No
Risk
Low
Align target framework visibility with VS/MSBuild version support to prevent users from seeing unsupported frameworks in older VS versions, and simplify error handling by removing VS-version-specific logic.
Changes
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.