msbuild
msbuild copied to clipboard
Update the condition GenerateTargetFrameworkMonikerAttribute
Fixes #9840
Context
https://github.com/dotnet/msbuild/blob/9af8ff2f951017996172e5b805651ebf957e97f4/src/Tasks/Microsoft.Common.CurrentVersion.targets#L3667-L3689
The condition on the target doesn't match the condition on the WriteLinesToFile task. So get this
Changes Made
Add and '$(TargetFrameworkMonikerAssemblyAttributeText)' != '' to the Condition on the Target and removing the redundant conditions on tasks
Close this test PR