|
40 | 40 | <PropertyGroup> |
41 | 41 | <NoLogo>true</NoLogo> |
42 | 42 | <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> |
43 | | - <TargetFramework>net5.0</TargetFramework> |
| 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 --> |
44 | 46 | <LangVersion>9.0</LangVersion> |
45 | 47 | <SolutionDir Condition="$(SolutionDir) == ''">$([MSBuild]::EnsureTrailingSlash( |
46 | 48 | $([MSBuild]::GetDirectoryNameOfFileAbove('$(MSBuildThisFileDirectory)', 'Orm.sln'))))</SolutionDir> |
47 | 49 | <Configuration Condition="$(Configuration) == ''">Debug</Configuration> |
48 | 50 | <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> |
49 | 51 | <ArtifactsDir Condition="'$(ArtifactsDir)'==''">$(SolutionDir)_Build\</ArtifactsDir> |
50 | 52 | <BaseIntermediateOutputPath>$(ArtifactsDir)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath> |
51 | | - <IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath> |
| 53 | + <IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\$(TargetFramework)\</IntermediateOutputPath> |
52 | 54 | <BaseOutputPath>$(ArtifactsDir)bin\$(Configuration)\</BaseOutputPath> |
53 | 55 | <BaseOutputPath Condition="$(MSBuildProjectName.Contains('Tests')) |
54 | 56 | OR $(MSBuildProjectName) == 'TestCommon' |
55 | 57 | OR $(MSBuildProjectName) == 'Xtensive.Orm.Manual'">$(ArtifactsDir)tests\$(Configuration)\</BaseOutputPath> |
56 | 58 | <OutputPath>$(BaseOutputPath)lib\</OutputPath> |
57 | 59 | <MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath> |
58 | 60 | <ProjectAssetsFile>$(MSBuildProjectExtensionsPath)project.assets.json</ProjectAssetsFile> |
59 | | - <ProjectAssetsCacheFile>$(MSBuildProjectExtensionsPath)$(MSBuildProjectName).assets.cache</ProjectAssetsCacheFile> |
| 61 | + <ProjectAssetsCacheFile>$(MSBuildProjectExtensionsPath)$(TargetFramework)\$(MSBuildProjectName).assets.cache</ProjectAssetsCacheFile> |
60 | 62 | <OrmKeyFile>$(SolutionDir)Orm\Orm.snk</OrmKeyFile> |
61 | 63 | </PropertyGroup> |
62 | 64 |
|
|
0 commit comments