Summary
For
<TargetFramework />
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
or
<TargetFramework></TargetFramework>
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
We get
error BC0107: Project foo.csproj specifies 'TargetFrameworks' property 'net472;netstandard2.0' and 'TargetFramework' property '' at the same time. This will lead to 'TargetFrameworks' being ignored and build will behave as single-targeted.
Consider handling the case of $(TargetFramework) having empty value to be valid in this case.
Background and Motivation
A repo can have a default TF with several projects multi-targeting.
Sample issue or antipattern that the check should be flagging
<TargetFramework />
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
or
<TargetFramework></TargetFramework>
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
Should be valid usages
Sample output
No response
Summary
For
or
We get
Consider handling the case of
$(TargetFramework)having empty value to be valid in this case.Background and Motivation
A repo can have a default TF with several projects multi-targeting.
Sample issue or antipattern that the check should be flagging
or
Should be valid usages
Sample output
No response