Target all .Net versions of .net5 or higher in msbuild condition
When building a application with multiple target Frameworks .Net 6.0 and .Net Framework 4.7.2 (<TargetFrameworks>net6.0;net472</TargetFrameworks>) application you can specify conditions for msbuild in a project or target file like that: <ItemGroup Condition=”‘$(TargetFramework)’ == ‘net6.0′”> Something </ItemGroup> OR <Target Name=”MyUniqueTarget213243″ BeforeTargets=”Build”> <Message Importance=”high” Text=”Message for .net Framework” Condition=”$(TargetFramework)’ == ‘net472′” /> <Message Importance=”high” Text=”Message for .net … Read more