msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

Update the condition GenerateTargetFrameworkMonikerAttribute

Open JaynieBai opened this issue 1 year ago • 1 comments

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 image

Changes Made

Add and '$(TargetFrameworkMonikerAssemblyAttributeText)' != '' to the Condition on the Target and removing the redundant conditions on tasks

JaynieBai avatar Mar 26 '24 09:03 JaynieBai

Close this test PR

JaynieBai avatar Apr 19 '24 01:04 JaynieBai