|
37 | 37 | <NoWarn Condition="$(MSBuildProjectName.Contains('Tests')) == 'true'">$(NoWarn);SYSLIB0011</NoWarn> |
38 | 38 | </PropertyGroup> |
39 | 39 |
|
| 40 | + <!-- Debug-NET6, Release-NET6 are mostly for development convenience --> |
| 41 | + <PropertyGroup Condition = "$(Configuration.Contains('NET6')) == 'true'"> |
| 42 | + <!-- hard binding to net6, no property and env variable allowed --> |
| 43 | + <TargetFrameworks>net6.0</TargetFrameworks> |
| 44 | + </PropertyGroup> |
| 45 | + |
| 46 | + <!-- Debug-NET5, Release-NET5 are mostly for development convenience --> |
| 47 | + <PropertyGroup Condition = "$(Configuration.Contains('NET5')) == 'true'"> |
| 48 | + <!-- hard binding to net5, no property and env variable allowed--> |
| 49 | + <TargetFrameworks>net5.0</TargetFrameworks> |
| 50 | + </PropertyGroup> |
| 51 | + |
| 52 | + <!--Release and Debug are for final builds, builds on build server, etc. Target frameworks are configurable here --> |
| 53 | + <PropertyGroup Label="Defaults" Condition="$(Configuration.Contains('NET5')) == 'false' AND $(Configuration.Contains('NET6')) == 'false'"> |
| 54 | + <Configuration Condition="$(Configuration) == ''">Debug</Configuration> |
| 55 | + <TargetFrameworks>$(TargetFrameworks)</TargetFrameworks> <!-- the property --> |
| 56 | + <TargetFrameworks Condition="'$(TargetFrameworks)'==''">$(DO_TargetFrameworks)</TargetFrameworks> <!-- env var --> |
| 57 | + <TargetFrameworks Condition="'$(TargetFrameworks)'==''">net6.0;net5.0</TargetFrameworks> <!-- fallback to default --> |
| 58 | + </PropertyGroup> |
| 59 | + |
40 | 60 | <PropertyGroup> |
41 | 61 | <NoLogo>true</NoLogo> |
42 | 62 | <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> |
43 | | - <TargetFrameworks>$(TargetFrameworks)</TargetFrameworks> <!-- the property --> |
44 | | - <TargetFrameworks Condition="'$(TargetFrameworks)'==''">$(DO_TargetFrameworks)</TargetFrameworks> <!-- env var --> |
45 | | - <TargetFrameworks Condition="'$(TargetFrameworks)'==''">net6.0;net5.0</TargetFrameworks> <!-- fallback to default --> |
| 63 | + <!-- |
| 64 | + <Configuration Condition="$(Configuration) == ''">Debug</Configuration> |
| 65 | + <TargetFrameworks>$(TargetFrameworks)</TargetFrameworks> |
| 66 | + <TargetFrameworks Condition="'$(TargetFrameworks)'==''">$(DO_TargetFrameworks)</TargetFrameworks> |
| 67 | + <TargetFrameworks Condition="'$(TargetFrameworks)'==''">net6.0;net5.0</TargetFrameworks> |
| 68 | + --> |
46 | 69 | <LangVersion>9.0</LangVersion> |
47 | 70 | <SolutionDir Condition="$(SolutionDir) == ''">$([MSBuild]::EnsureTrailingSlash( |
48 | 71 | $([MSBuild]::GetDirectoryNameOfFileAbove('$(MSBuildThisFileDirectory)', 'Orm.sln'))))</SolutionDir> |
49 | | - <Configuration Condition="$(Configuration) == ''">Debug</Configuration> |
50 | 72 | <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> |
51 | 73 | <ArtifactsDir Condition="'$(ArtifactsDir)'==''">$(SolutionDir)_Build\</ArtifactsDir> |
52 | 74 | <BaseIntermediateOutputPath>$(ArtifactsDir)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath> |
|
0 commit comments