dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.7k stars 1.06k forks source link

unsupport non-standard TFM netXY vs. netX.Y #43773

Open kasperk81 opened 3 weeks ago

kasperk81 commented 3 weeks ago

0.01% of the projects on github have <TargetFramework>net80 https://github.com/search?q=%22%3Ctargetframework%3Enet80%22&type=code vs net8.0 https://github.com/search?q=%22%3Ctargetframework%3Enet8.0%22&type=code

XY is undocumented format https://learn.microsoft.com/dotnet/standard/frameworks#supported-target-frameworks and double digit tfm will make life harder for third party tools to parse the value (https://github.com/dotnet/runtime/pull/106599#discussion_r1721809662).

sdk should just error on netXY netcoreappXY netcoreappX.Y for v >= 5.

marcpopMSFT commented 1 week ago

@baronfel do we have an issue tracking sdk buildchecks?

baronfel commented 1 week ago

Just the msbuild-analyzer-candidate label that's been around for a bit.