36
36
<CodeAnalysisIgnoreBuiltInRules >false</CodeAnalysisIgnoreBuiltInRules >
37
37
<CodeAnalysisFailOnMissingRules >false</CodeAnalysisFailOnMissingRules >
38
38
</PropertyGroup >
39
- <PropertyGroup Condition =" '$(TargetFramework)' == 'MonoAndroid10' or '$(TargetFramework)' == 'Xamarin.iOS10'" >
40
- <SignAssembly >false</SignAssembly >
39
+
40
+ <!-- Extra base properties for targets -->
41
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'monoandroid10' or '$(TargetFramework)' == 'xamarin.ios10'" >
42
+ <DefineConstants >$(DefineConstants);__MOBILE__;AOT;XAMARIN</DefineConstants >
43
+ <TargetFrameworkRootPath Condition =" '$(VsInstallRoot)' != ''" >$(VsInstallRoot)\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\</TargetFrameworkRootPath >
44
+ <ImplicitlyExpandDesignTimeFacades >true</ImplicitlyExpandDesignTimeFacades >
45
+ <SignAssembly >true</SignAssembly >
46
+ <IsXamarin >true</IsXamarin >
41
47
</PropertyGroup >
42
- <PropertyGroup Condition =" '$(OutputPath)' == '' and ' $(TargetFramework)' == '' " >
43
- <DocumentationFile >$(AssemblyName).XML</ DocumentationFile >
48
+ <PropertyGroup Condition =" $(TargetFramework.StartsWith('net3')) or $(TargetFramework.StartsWith('net4')) " >
49
+ <IsNetFramework >true</ IsNetFramework >
44
50
</PropertyGroup >
45
- <PropertyGroup Condition =" '$(OutputPath)' != '' or '$(TargetFramework)' != ''" >
46
- <DocumentationFile >$(OutputPath)\$(TargetFramework)\$(AssemblyName).XML</DocumentationFile >
51
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'monoandroid10'" >
52
+ <DefineConstants >$(DefineConstants);__ANDROID__</DefineConstants >
53
+ <TargetFrameworkIdentifier >MonoAndroid</TargetFrameworkIdentifier >
54
+ <TargetFrameworkVersion >v1.0</TargetFrameworkVersion >
47
55
</PropertyGroup >
48
- <PropertyGroup Condition =" '$(TargetFramework)' == 'uap10.0'" >
49
- <DebugType >pdbonly</DebugType >
50
- <DefineConstants >$(DefineConstants);FEATURE_TAP;FEATURE_CONCURRENT</DefineConstants >
56
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'xamarin.ios10'" >
57
+ <DefineConstants >$(DefineConstants);__IOS__</DefineConstants >
58
+ <TargetFrameworkIdentifier >Xamarin.iOS</TargetFrameworkIdentifier >
59
+ <TargetFrameworkVersion >v1.0</TargetFrameworkVersion >
51
60
</PropertyGroup >
52
- <PropertyGroup Condition =" '$(TargetFramework)' == 'net35'" >
53
- <DebugType >pdbonly</DebugType >
54
- <DefineConstants >$(DefineConstants);FEATURE_POINTER_CONVERSION</DefineConstants >
61
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'uap10.0'" >
62
+ <DefineConstants >$(DefineConstants);NETFX_CORE;WINDOWS_UWP;NETSTANDARD1_3;AOT</DefineConstants >
55
63
</PropertyGroup >
56
- <PropertyGroup Condition =" '$(TargetFramework)' == 'net45'" >
57
- <DebugType >pdbonly</DebugType >
58
- <DefineConstants >$(DefineConstants);FEATURE_TAP;FEATURE_CONCURRENT;FEATURE_POINTER_CONVERSION</DefineConstants >
64
+
65
+ <!-- Document XML -->
66
+ <PropertyGroup Condition =" '$(OutputPath)' == '' and '$(TargetFramework)' == ''" >
67
+ <DocumentationFile >$(AssemblyName).XML</DocumentationFile >
59
68
</PropertyGroup >
60
- <PropertyGroup Condition =" '$(TargetFramework)' == 'net46'" >
61
- <DebugType >pdbonly</DebugType >
62
- <DefineConstants >$(DefineConstants);FEATURE_TAP;FEATURE_CONCURRENT;FEATURE_POINTER_CONVERSION;FEATURE_MEMCOPY</DefineConstants >
69
+ <PropertyGroup Condition =" '$(OutputPath)' != '' or '$(TargetFramework)' != ''" >
70
+ <DocumentationFile >$(OutputPath)\$(TargetFramework)\$(AssemblyName).XML</DocumentationFile >
63
71
</PropertyGroup >
64
- <PropertyGroup Condition =" '$(TargetFramework)' == 'net47'" >
72
+
73
+ <!-- Debug settings -->
74
+ <PropertyGroup Condition =" '$(IsNetFramework)' == 'true' or '$(TargetFramework)' == 'uap10.0'" >
65
75
<DebugType >pdbonly</DebugType >
66
- <DefineConstants >$(DefineConstants);FEATURE_TAP;FEATURE_CONCURRENT;FEATURE_POINTER_CONVERSION;FEATURE_MEMCOPY</DefineConstants >
67
76
</PropertyGroup >
68
- <PropertyGroup Condition =" '$(TargetFramework)' == 'netstandard1.1'" >
69
- <DefineConstants >$(DefineConstants);FEATURE_TAP;FEATURE_CONCURRENT</DefineConstants >
77
+
78
+ <!-- Feature Flags -->
79
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'uap10.0' or $(TargetFramework.StartsWith('net4')) or $(TargetFramework.StartsWith('netcoreapp')) or $(TargetFramework.StartsWith('netstandard')) or '$(IsXamarin)' == 'true'" >
80
+ <DefineConstants >$(DefineConstants);FEATURE_TAP</DefineConstants >
81
+ <FeatureTap >true</FeatureTap >
70
82
</PropertyGroup >
71
- <PropertyGroup Condition =" '$(TargetFramework)' == 'netstandard1.3 ' or ' $(TargetFramework)' == 'netcoreapp1.0 '" >
72
- <DefineConstants >$(DefineConstants);FEATURE_TAP; FEATURE_CONCURRENT;FEATURE_MEMCOPY </DefineConstants >
83
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'uap10.0 ' or $(TargetFramework.StartsWith('net4')) or $(TargetFramework.StartsWith('netstandard')) or $(TargetFramework.StartsWith('netcoreapp')) or '$(IsXamarin)' == 'true '" >
84
+ <DefineConstants >$(DefineConstants);FEATURE_CONCURRENT</DefineConstants >
73
85
</PropertyGroup >
74
- <PropertyGroup Condition =" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netcoreapp2.0'" >
75
- <DefineConstants >$(DefineConstants);FEATURE_TAP;FEATURE_CONCURRENT; FEATURE_POINTER_CONVERSION;FEATURE_MEMCOPY </DefineConstants >
86
+ <PropertyGroup Condition =" '$(IsNetFramework)' == 'true' or '$( TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netcoreapp2.0' or '$(IsXamarin)' == 'true '" >
87
+ <DefineConstants >$(DefineConstants);FEATURE_POINTER_CONVERSION</DefineConstants >
76
88
</PropertyGroup >
77
- <PropertyGroup Condition =" '$(TargetFramework)' == 'MonoAndroid10' or '$(TargetFramework)' == 'Xamarin.iOS10'" >
78
- <DefineConstants >$(DefineConstants);__MOBILE__;AOT;XAMARIN;FEATURE_TAP;FEATURE_CONCURRENT;FEATURE_POINTER_CONVERSION;FEATURE_MEMCOPY</DefineConstants >
89
+ <PropertyGroup Condition =" '$(IsNetFramework)' == 'true' or '$(TargetFramework)' == 'netstandard1.3' or '$(TargetFramework)' == 'netstandard2.0' or $(TargetFramework.StartsWith('netcoreapp'))" >
90
+ <DefineConstants >$(DefineConstants);FEATURE_EMIT</DefineConstants >
91
+ <FeatureEmit >true</FeatureEmit >
79
92
</PropertyGroup >
80
- <PropertyGroup Condition =" '$(TargetFramework)' == 'MonoAndroid10'" >
81
- <DefineConstants >$(DefineConstants);__ANDROID__</DefineConstants >
82
- <TargetFrameworkRootPath Condition =" '$(VsInstallRoot)' != ''" >$(VsInstallRoot)\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\</TargetFrameworkRootPath >
83
- <ImplicitlyExpandDesignTimeFacades >true</ImplicitlyExpandDesignTimeFacades >
93
+ <PropertyGroup Condition =" '$(IsNetFramework)' == 'true' or '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netcoreapp2.0'" >
94
+ <DefineConstants >$(DefineConstants);FEATURE_CODEGEN</DefineConstants >
95
+ <FeatureCodeGen >true</FeatureCodeGen >
84
96
</PropertyGroup >
85
- <PropertyGroup Condition =" '$(TargetFramework)' == 'Xamarin.iOS10'" >
86
- <DefineConstants >$(DefineConstants);__IOS__</DefineConstants >
87
- <TargetFrameworkRootPath Condition =" '$(VsInstallRoot)' != ''" >$(VsInstallRoot)\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\</TargetFrameworkRootPath >
88
- <ImplicitlyExpandDesignTimeFacades >true</ImplicitlyExpandDesignTimeFacades >
97
+ <PropertyGroup Condition =" '$(IsNetFramework)' == 'true'" >
98
+ <DefineConstants >$(DefineConstants);FEATURE_ASMGEN</DefineConstants >
99
+ <FeatureAsmGen >true</FeatureAsmGen >
89
100
</PropertyGroup >
90
- <PropertyGroup Condition =" '$(TargetFramework)' == 'uap10.0 '" >
91
- <DefineConstants >$(DefineConstants);NETFX_CORE;WINDOWS_UWP;NETSTANDARD1_3;AOT </DefineConstants >
101
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'net46' or '$(TargetFramework)' == 'net47' or '$(TargetFramework)' == 'netstandard1.3' or '$(TargetFramework)' == 'netstandard2.0' or $(TargetFramework.StartsWith('netcoreapp')) or '$(IsXamarin)' == 'true '" >
102
+ <DefineConstants >$(DefineConstants);FEATURE_MEMCOPY </DefineConstants >
92
103
</PropertyGroup >
104
+
93
105
<PropertyGroup Condition =" '$(Configuration)' == 'Debug'" >
94
106
<DebugType >full</DebugType >
95
107
</PropertyGroup >
96
- </Project >
108
+ </Project >
0 commit comments