diff --git a/src/Tasks/Microsoft.Common.CurrentVersion.targets b/src/Tasks/Microsoft.Common.CurrentVersion.targets index 3ee36c1eb46..087b23143e2 100644 --- a/src/Tasks/Microsoft.Common.CurrentVersion.targets +++ b/src/Tasks/Microsoft.Common.CurrentVersion.targets @@ -385,7 +385,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. <_GenerateBindingRedirectsIntermediateAppConfig>$(IntermediateOutputPath)$(TargetFileName).config - + $(MSBuildProjectFile) @@ -3669,7 +3669,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. DependsOnTargets="PrepareForBuild;GetReferenceAssemblyPaths" Inputs="$(MSBuildToolsPath)\Microsoft.Common.targets" Outputs="$(TargetFrameworkMonikerAssemblyAttributesPath)" - Condition="'@(Compile)' != '' and '$(GenerateTargetFrameworkAttribute)' == 'true'"> + Condition="'@(Compile)' != '' and '$(GenerateTargetFrameworkAttribute)' == 'true' and '$(TargetFrameworkMonikerAssemblyAttributeText)' != ''"> @@ -3677,11 +3677,9 @@ Copyright (C) Microsoft Corporation. All rights reserved. File="$(TargetFrameworkMonikerAssemblyAttributesPath)" Lines="$(TargetFrameworkMonikerAssemblyAttributeText)" Overwrite="true" - ContinueOnError="true" - Condition="'@(Compile)' != '' and '$(TargetFrameworkMonikerAssemblyAttributeText)' != ''" - /> + ContinueOnError="true"/> - + @@ -4500,7 +4498,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. <_ClickOnceTransitiveContentItems Include="@(_ClickOnceTransitiveContentItemsTemp->'%(SavedIdentity)')" Condition="'%(Identity)'=='@(PublishFile)' Or '%(Extension)'=='.exe' Or '%(Extension)'=='.dll'" /> - @@ -6819,7 +6817,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. - + false