Skip to content

Commit bffb2ab

Browse files
authored
Always do TFM Attributes at front of compile list (#5511)
1 parent 6a548ca commit bffb2ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/fsharp/FSharp.Build/Microsoft.FSharp.Targets

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,7 @@ this file.
394394
Overwrite="true"/>
395395

396396
<ItemGroup>
397-
<CompileBefore Include="$(TargetFrameworkMonikerAssemblyAttributesPath)" Condition="'$(AdditionalSourcesText)' != '' AND ('$(OutputType)' == 'Exe' OR '$(OutputType)' == 'WinExe')"/>
398-
<CompileAfter Include="$(TargetFrameworkMonikerAssemblyAttributesPath)" Condition="'$(AdditionalSourcesText)' != '' AND '$(OutputType)' != 'Exe' AND '$(OutputType)' != 'WinExe'"/>
397+
<CompileBefore Include="$(TargetFrameworkMonikerAssemblyAttributesPath)" Condition="'$(AdditionalSourcesText)' != ''"/>
399398
</ItemGroup>
400399

401400
</Target>

0 commit comments

Comments
 (0)