Skip to content

Commit 1342b9e

Browse files
committed
Fix default case of target frameworks for projects
1 parent 0338eec commit 1342b9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Directory.Build.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
</PropertyGroup>
6464

6565
<!--Release and Debug are for final builds, builds on build server, etc. Target frameworks are configurable here -->
66-
<PropertyGroup Label="Defaults" Condition="$(Configuration.Contains('NET7')) == 'false' AND $(Configuration.Contains('NET6')) == 'false'">
66+
<PropertyGroup Label="Defaults"
67+
Condition="$(Configuration.Contains('NET8')) == 'false' AND $(Configuration.Contains('NET7')) == 'false' AND $(Configuration.Contains('NET6')) == 'false'">
6768
<Configuration Condition="$(Configuration) == ''">Debug</Configuration>
6869
<TargetFrameworks>$(TargetFrameworks)</TargetFrameworks> <!-- the property -->
6970
<TargetFrameworks Condition="'$(TargetFrameworks)'==''">$(DO_TargetFrameworks)</TargetFrameworks> <!-- env var -->
@@ -83,7 +84,7 @@
8384
<PropertyGroup>
8485
<NoLogo>true</NoLogo>
8586
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
86-
<LangVersion>10.0</LangVersion> <!-- version assigned with net6.0 -->
87+
<LangVersion>10.0</LangVersion> <!-- version assigned to net6.0 -->
8788
<SolutionDir Condition="$(SolutionDir) == ''">$([MSBuild]::EnsureTrailingSlash(
8889
$([MSBuild]::GetDirectoryNameOfFileAbove('$(MSBuildThisFileDirectory)', 'Orm.sln'))))</SolutionDir>
8990
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>

0 commit comments

Comments
 (0)