Skip to content

Commit 95b7931

Browse files
authored
Fix target frameworks for Source Build (#5753)
1 parent 5a75b28 commit 95b7931

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

build/common.project.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
<!-- Target frameworks for class libraries-->
2121
<TargetFrameworksLibrary>$(NetStandardVersion)</TargetFrameworksLibrary>
22+
<TargetFrameworksLibrary Condition="'$(DotNetBuildFromSource)' == 'true'">$(NETCoreTargetFramework);$(TargetFrameworksLibrary)</TargetFrameworksLibrary>
2223
<TargetFrameworksLibrary Condition="'$(IsXPlat)' != 'true' And '$(DotNetBuildFromSource)' != 'true'">$(NETFXTargetFramework);$(TargetFrameworksLibrary)</TargetFrameworksLibrary>
2324

2425
<!-- Target frameworks for class libraries which require signing APIs which need to target NET 5.0 -->

0 commit comments

Comments
 (0)