Conversation
|
Should this be in MSBuild or on the SDK? Meaning, are TFMs a general MSBuild concept or are they something that applies to managed languages/sdk-style projects only? My intuition was SDK-style projects only and so I would have expected to see this only on the SDK layer. One thing I'd like to check is that it's very common to have a multi-TFM project, but then build or publish for a specific TFM at the command line using the '-f' parameter, which is passed to the build as a global property. Does this usage pattern trigger the check incorrectly? |
I'd keep here now as we do not yet have a good concept of 'friend build-in checks'.
Global override is allowed. I put this to help link: But it should be more specific and clear - I'll imporove. |
Fixes #9880
Context
TargetFrameworkandTargetFrameworksproperties should not be specified in the build script at the same time.Testing
Tailored unit tests added
Notes
This calls to be unified with the #10635 Check. Let's do that in the separate PR, once this one is merged