Skip to content

Commit 3674f88

Browse files
authored
Update to Unified Build controls (#2328)
1 parent ecd2ce5 commit 3674f88

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Directory.Build.props

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66

77
<PropertyGroup>
88
<NoWarn>$(NoWarn);NU5125;CS0618</NoWarn>
9-
<NoWarn Condition=" '$(DotnetBuildFromSource)' == 'true' ">$(NoWarn);CS8714;CS8765;CS8600;CS8601;CS8602;CS8603;CS8604</NoWarn>
109
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1110
<LangVersion>10.0</LangVersion>
1211
</PropertyGroup>
1312

14-
<PropertyGroup Condition="'$(DotNetBuildFromSource)' == 'true'">
13+
<PropertyGroup Condition="'$(DotNetBuildFromSource)' == 'true' or '$(DotNetBuildSourceOnly)' == 'true'">
1514
<TargetFrameworkForNETSDK>$(NetCurrent)</TargetFrameworkForNETSDK>
1615
</PropertyGroup>
1716

18-
<PropertyGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
17+
<PropertyGroup Condition="'$(DotNetBuildFromSource)' != 'true' and '$(DotNetBuildSourceOnly)' != 'true'">
1918
<TargetFrameworkForNETSDK>net7.0</TargetFrameworkForNETSDK>
2019
</PropertyGroup>
2120

0 commit comments

Comments
 (0)