|
33 | 33 | <DoGeneratePackage Condition="$(MSBuildProjectName) == 'TestCommon'">false</DoGeneratePackage> |
34 | 34 | <DoGeneratePackage Condition="$(MSBuildProjectName.Contains('Tests')) == 'true'">false</DoGeneratePackage> |
35 | 35 |
|
| 36 | + <!-- BuildingInsideVisualStudio is also true in Rider --> |
| 37 | + <DoIsIdeBuild>false</DoIsIdeBuild> |
| 38 | + <DoIsIdeBuild Condition="$(BuildingInsideVisualStudio) == 'true'">true</DoIsIdeBuild> |
| 39 | + |
36 | 40 | <!-- Disable "BinaryFormatter is obsolete" warnings for test projects --> |
37 | 41 | <NoWarn Condition="$(MSBuildProjectName.Contains('Tests')) == 'true'">$(NoWarn);SYSLIB0011</NoWarn> |
38 | 42 | </PropertyGroup> |
39 | 43 |
|
| 44 | + <!-- Debug-NET6, Release-NET6 are mostly for development convenience --> |
| 45 | + <PropertyGroup Condition = "$(Configuration.Contains('NET6')) == 'true'"> |
| 46 | + <!-- hard binding to net6, no property and env variable allowed --> |
| 47 | + <TargetFrameworks>net6.0</TargetFrameworks> |
| 48 | + </PropertyGroup> |
| 49 | + |
| 50 | + <!-- Debug-NET5, Release-NET5 are mostly for development convenience --> |
| 51 | + <PropertyGroup Condition = "$(Configuration.Contains('NET5')) == 'true'"> |
| 52 | + <!-- hard binding to net5, no property and env variable allowed--> |
| 53 | + <TargetFrameworks>net5.0</TargetFrameworks> |
| 54 | + </PropertyGroup> |
| 55 | + |
| 56 | + <!--Release and Debug are for final builds, builds on build server, etc. Target frameworks are configurable here --> |
| 57 | + <PropertyGroup Label="Defaults" Condition="$(Configuration.Contains('NET5')) == 'false' AND $(Configuration.Contains('NET6')) == 'false'"> |
| 58 | + <Configuration Condition="$(Configuration) == ''">Debug</Configuration> |
| 59 | + <TargetFrameworks>$(TargetFrameworks)</TargetFrameworks> <!-- the property --> |
| 60 | + <TargetFrameworks Condition="'$(TargetFrameworks)'==''">$(DO_TargetFrameworks)</TargetFrameworks> <!-- env var --> |
| 61 | + <TargetFrameworks Condition="'$(TargetFrameworks)'==''">net6.0;net5.0</TargetFrameworks> <!-- fallback to default --> |
| 62 | + </PropertyGroup> |
| 63 | + |
40 | 64 | <PropertyGroup> |
41 | 65 | <NoLogo>true</NoLogo> |
42 | 66 | <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> |
43 | | - <TargetFrameworks>$(TargetFrameworks)</TargetFrameworks> <!-- the property --> |
44 | | - <TargetFrameworks Condition="'$(TargetFrameworks)'==''">$(DO_TargetFrameworks)</TargetFrameworks> <!-- env var --> |
45 | | - <TargetFrameworks Condition="'$(TargetFrameworks)'==''">net5.0</TargetFrameworks> <!-- fallback to default --> |
46 | 67 | <LangVersion>9.0</LangVersion> |
47 | 68 | <SolutionDir Condition="$(SolutionDir) == ''">$([MSBuild]::EnsureTrailingSlash( |
48 | 69 | $([MSBuild]::GetDirectoryNameOfFileAbove('$(MSBuildThisFileDirectory)', 'Orm.sln'))))</SolutionDir> |
49 | | - <Configuration Condition="$(Configuration) == ''">Debug</Configuration> |
50 | 70 | <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> |
51 | 71 | <ArtifactsDir Condition="'$(ArtifactsDir)'==''">$(SolutionDir)_Build\</ArtifactsDir> |
52 | 72 | <BaseIntermediateOutputPath>$(ArtifactsDir)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath> |
53 | | - <IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\$(TargetFramework)\</IntermediateOutputPath> |
| 73 | + <IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath> |
54 | 74 | <BaseOutputPath>$(ArtifactsDir)bin\$(Configuration)\</BaseOutputPath> |
55 | 75 | <BaseOutputPath Condition="$(MSBuildProjectName.Contains('Tests')) |
56 | 76 | OR $(MSBuildProjectName) == 'TestCommon' |
57 | 77 | OR $(MSBuildProjectName) == 'Xtensive.Orm.Manual'">$(ArtifactsDir)tests\$(Configuration)\</BaseOutputPath> |
58 | 78 | <OutputPath>$(BaseOutputPath)lib\</OutputPath> |
59 | | - <MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath> |
| 79 | + <MSBuildProjectExtensionsPath>$(IntermediateOutputPath)</MSBuildProjectExtensionsPath> |
60 | 80 | <ProjectAssetsFile>$(MSBuildProjectExtensionsPath)project.assets.json</ProjectAssetsFile> |
61 | 81 | <ProjectAssetsCacheFile>$(MSBuildProjectExtensionsPath)$(TargetFramework)\$(MSBuildProjectName).assets.cache</ProjectAssetsCacheFile> |
62 | 82 | <OrmKeyFile>$(SolutionDir)Orm\Orm.snk</OrmKeyFile> |
|
0 commit comments