|
39 | 39 |
|
40 | 40 | <!-- Disable "BinaryFormatter is obsolete" warnings for test projects --> |
41 | 41 | <NoWarn Condition="$(MSBuildProjectName.Contains('Tests')) == 'true'">$(NoWarn);SYSLIB0011</NoWarn> |
| 42 | + <!-- Enable Usage of BinaryFormatter in test projects --> |
| 43 | + <EnableUnsafeBinaryFormatterSerialization |
| 44 | + Condition="'$(TargetFramework)'=='net8.0' AND $(MSBuildProjectName.Contains('Tests')) == 'true'">true</EnableUnsafeBinaryFormatterSerialization> |
| 45 | + </PropertyGroup> |
| 46 | + |
| 47 | + <!-- Debug-NET8, Release-NET8 are mostly for development convenience --> |
| 48 | + <PropertyGroup Condition = "$(Configuration.Contains('NET8')) == 'true'"> |
| 49 | + <!-- hard binding to net8, no property and env variable allowed--> |
| 50 | + <TargetFrameworks>net8.0</TargetFrameworks> |
| 51 | + </PropertyGroup> |
| 52 | + |
| 53 | + <!-- Debug-NET7, Release-NET7 are mostly for development convenience --> |
| 54 | + <PropertyGroup Condition = "$(Configuration.Contains('NET7')) == 'true'"> |
| 55 | + <!-- hard binding to net7, no property and env variable allowed--> |
| 56 | + <TargetFrameworks>net7.0</TargetFrameworks> |
42 | 57 | </PropertyGroup> |
43 | 58 |
|
44 | 59 | <!-- Debug-NET6, Release-NET6 are mostly for development convenience --> |
|
47 | 62 | <TargetFrameworks>net6.0</TargetFrameworks> |
48 | 63 | </PropertyGroup> |
49 | 64 |
|
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 | 65 | <!--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'"> |
| 66 | + <PropertyGroup Label="Defaults" |
| 67 | + Condition="$(Configuration.Contains('NET8')) == 'false' AND $(Configuration.Contains('NET7')) == 'false' AND $(Configuration.Contains('NET6')) == 'false'"> |
58 | 68 | <Configuration Condition="$(Configuration) == ''">Debug</Configuration> |
59 | 69 | <TargetFrameworks>$(TargetFrameworks)</TargetFrameworks> <!-- the property --> |
60 | 70 | <TargetFrameworks Condition="'$(TargetFrameworks)'==''">$(DO_TargetFrameworks)</TargetFrameworks> <!-- env var --> |
61 | | - <TargetFrameworks Condition="'$(TargetFrameworks)'==''">net6.0;net5.0</TargetFrameworks> <!-- fallback to default --> |
| 71 | + <TargetFrameworks Condition="'$(TargetFrameworks)'==''">net8.0;net7.0;net6.0</TargetFrameworks> <!-- fallback to default --> |
62 | 72 | </PropertyGroup> |
63 | 73 |
|
64 | 74 | <PropertyGroup Condition = "$(Configuration.Contains('Debug')) == 'true'"> |
|
74 | 84 | <PropertyGroup> |
75 | 85 | <NoLogo>true</NoLogo> |
76 | 86 | <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> |
77 | | - <LangVersion>9.0</LangVersion> |
| 87 | + <LangVersion>10.0</LangVersion> <!-- version assigned to net6.0 --> |
78 | 88 | <SolutionDir Condition="$(SolutionDir) == ''">$([MSBuild]::EnsureTrailingSlash( |
79 | 89 | $([MSBuild]::GetDirectoryNameOfFileAbove('$(MSBuildThisFileDirectory)', 'Orm.sln'))))</SolutionDir> |
80 | 90 | <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> |
|
0 commit comments