|
2 | 2 | <!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. --> |
3 | 3 | <Project> |
4 | 4 |
|
5 | | - <PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))"> |
6 | | - <DefineConstants Condition="'$(MonoPackaging)' == 'true'">$(DefineConstants);CROSS_PLATFORM_COMPILER</DefineConstants> |
7 | | - <DefineConstants>$(DefineConstants);ENABLE_MONO_SUPPORT</DefineConstants> |
8 | | - </PropertyGroup> |
9 | | - |
10 | | - <PropertyGroup Condition="$(TargetFramework.StartsWith('netstandard')) OR $(TargetFramework.StartsWith('netcoreapp'))"> |
11 | | - <DefineConstants>$(DefineConstants);NETSTANDARD</DefineConstants> |
12 | | - <DefineConstants>$(DefineConstants);FX_NO_APP_DOMAINS</DefineConstants> |
13 | | - <DefineConstants>$(DefineConstants);FX_NO_CORHOST_SIGNER</DefineConstants> |
14 | | - <DefineConstants>$(DefineConstants);FX_NO_PDB_READER</DefineConstants> |
15 | | - <DefineConstants>$(DefineConstants);FX_NO_PDB_WRITER</DefineConstants> |
16 | | - <DefineConstants>$(DefineConstants);FX_NO_SYMBOLSTORE</DefineConstants> |
17 | | - <DefineConstants>$(DefineConstants);FX_NO_SYSTEM_CONFIGURATION</DefineConstants> |
18 | | - <DefineConstants>$(DefineConstants);FX_NO_WIN_REGISTRY</DefineConstants> |
19 | | - <DefineConstants>$(DefineConstants);FX_NO_WINFORMS</DefineConstants> |
20 | | - <DefineConstants>$(DefineConstants);FX_NO_INDENTED_TEXT_WRITER</DefineConstants> |
21 | | - <DefineConstants>$(DefineConstants);FX_RESHAPED_REFEMIT</DefineConstants> |
22 | | - <OtherFlags>$(OtherFlags) --simpleresolution</OtherFlags> |
23 | | - </PropertyGroup> |
| 5 | + <Choose> |
| 6 | + <When Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' "> |
| 7 | + <PropertyGroup> |
| 8 | + <DefineConstants Condition="'$(MonoPackaging)' == 'true'">$(DefineConstants);CROSS_PLATFORM_COMPILER</DefineConstants> |
| 9 | + <DefineConstants>$(DefineConstants);ENABLE_MONO_SUPPORT</DefineConstants> |
| 10 | + </PropertyGroup> |
| 11 | + </When> |
| 12 | + <Otherwise> |
| 13 | + <PropertyGroup> |
| 14 | + <DefineConstants>$(DefineConstants);NETSTANDARD</DefineConstants> |
| 15 | + <DefineConstants>$(DefineConstants);FX_NO_APP_DOMAINS</DefineConstants> |
| 16 | + <DefineConstants>$(DefineConstants);FX_NO_CORHOST_SIGNER</DefineConstants> |
| 17 | + <DefineConstants>$(DefineConstants);FX_NO_PDB_READER</DefineConstants> |
| 18 | + <DefineConstants>$(DefineConstants);FX_NO_PDB_WRITER</DefineConstants> |
| 19 | + <DefineConstants>$(DefineConstants);FX_NO_SYMBOLSTORE</DefineConstants> |
| 20 | + <DefineConstants>$(DefineConstants);FX_NO_SYSTEM_CONFIGURATION</DefineConstants> |
| 21 | + <DefineConstants>$(DefineConstants);FX_NO_WIN_REGISTRY</DefineConstants> |
| 22 | + <DefineConstants>$(DefineConstants);FX_NO_WINFORMS</DefineConstants> |
| 23 | + <DefineConstants>$(DefineConstants);FX_NO_INDENTED_TEXT_WRITER</DefineConstants> |
| 24 | + <DefineConstants>$(DefineConstants);FX_RESHAPED_REFEMIT</DefineConstants> |
| 25 | + <OtherFlags>$(OtherFlags) --simpleresolution</OtherFlags> |
| 26 | + </PropertyGroup> |
| 27 | + </Otherwise> |
| 28 | + </Choose> |
24 | 29 |
|
25 | 30 | </Project> |
0 commit comments