Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 4601643

Browse files
teo-tsirpanissaul
authored andcommitted
Use TargetFramework name to determine the kind of framework. (dotnet#10247)
Co-authored-by: Saul Rennison <saul@users.noreply.github.com>
1 parent ccf3c9a commit 4601643

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

FSharp.Profiles.props

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,29 @@
22
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. -->
33
<Project>
44

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>
2429

2530
</Project>

0 commit comments

Comments
 (0)