|
7 | 7 | <WhenCondition="'$(ProjectLanguage)' == 'FSharp'"> |
8 | 8 | <Choose> |
9 | 9 | <WhenCondition="'$(AssemblyName)' == 'FSharp.Core'"> |
| 10 | + <PropertyGroupCondition="'$(TargetFramework)' == 'Portable7' or '$(TargetFramework)' == 'Portable78' or '$(TargetFramework)' == 'Portable259'"> |
| 11 | + <IsPortableProfile>true</IsPortableProfile> |
| 12 | + </PropertyGroup> |
10 | 13 | <PropertyGroup> |
11 | | - <OtherFlagsCondition="'$(TargetFramework)' != 'net20'AND '$(TargetFramework)' != 'portable47' AND '$(TargetFramework)' != 'portable7'">$(OtherFlags) --version:4.3.1.9055</OtherFlags> |
| 14 | + <OtherFlagsCondition="'$(TargetFramework)' != 'net20'and $(IsPortableProfile) != 'true'">$(OtherFlags) --version:4.3.1.9055</OtherFlags> |
12 | 15 | <OtherFlagsCondition="'$(TargetFramework)' == 'net20'">$(OtherFlags) --version:2.3.1.9055</OtherFlags> |
13 | | - <OtherFlagsCondition="'$(TargetFramework)' == 'portable47'">$(OtherFlags) --version:2.3.5.9055</OtherFlags> |
14 | 16 | <OtherFlagsCondition="'$(TargetFramework)' == 'portable7'">$(OtherFlags) --version:3.3.1.9055</OtherFlags> |
| 17 | + <OtherFlagsCondition="'$(TargetFramework)' == 'portable47'">$(OtherFlags) --version:2.3.5.9055</OtherFlags> |
| 18 | + <OtherFlagsCondition="'$(TargetFramework)' == 'portable78'">$(OtherFlags) --version:3.4.78.9055</OtherFlags> |
| 19 | + <OtherFlagsCondition="'$(TargetFramework)' == 'portable259'">$(OtherFlags) --version:3.4.259.9055</OtherFlags> |
15 | 20 | <OtherFlags>$(OtherFlags) --delaysign+ --keyfile:"$(FSharpSourcesRoot)\fsharp\msft.pubkey"</OtherFlags> |
16 | 21 | <DefineConstants>STRONG_NAME_AND_DELAY_SIGN_FSHARP_COMPILER_WITH_MSFT_KEY;$(DefineConstants)</DefineConstants> |
17 | 22 | <StrongNames>true</StrongNames> |
|
140 | 145 | <DefineConstants>$(DefineConstants);FX_SIMPLE_SECURITY_PERMISSIONS</DefineConstants> |
141 | 146 | <DefineConstants>$(DefineConstants);FX_NO_TRUNCATE</DefineConstants> |
142 | 147 | <DefineConstants>$(DefineConstants);FX_NO_CULTURE_INFO_ARGS</DefineConstants> |
143 | | - <DefineConstants>$(DefineConstants);FX_NO_REFLECTION_MODULES</DefineConstants> |
144 | 148 | <DefineConstants>$(DefineConstants);FX_NO_REFLECTION_METADATA_TOKENS</DefineConstants> |
145 | 149 | <DefineConstants>$(DefineConstants);FX_NO_TO_LOWER_INVARIANT</DefineConstants> |
146 | 150 | <DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants> |
|
184 | 188 |
|
185 | 189 | <!-- Target Portable Profile 7--> |
186 | 190 | <PropertyGroupCondition="'$(TargetFramework)'=='portable7'"> |
187 | | - <DefineConstants>$(DefineConstants);QUERIES_IN_FSLIB</DefineConstants> |
188 | 191 | <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE</DefineConstants> |
| 192 | + <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE7</DefineConstants> |
| 193 | + <DefineConstants>$(DefineConstants);QUERIES_IN_FSLIB</DefineConstants> |
189 | 194 | <DefineConstants>$(DefineConstants);FX_ATLEAST_35</DefineConstants> |
190 | 195 | <DefineConstants>$(DefineConstants);FX_ATLEAST_PORTABLE</DefineConstants> |
191 | 196 | <DefineConstants>$(DefineConstants);FX_NO_ARRAY_LONG_LENGTH</DefineConstants> |
192 | 197 | <DefineConstants>$(DefineConstants);FX_NO_EXIT</DefineConstants> |
193 | 198 | <DefineConstants>$(DefineConstants);FX_NO_CHAR_PARSE</DefineConstants> |
194 | 199 | <DefineConstants>$(DefineConstants);FX_NO_DEFAULT_DEPENDENCY_TYPE</DefineConstants> |
195 | 200 | <DefineConstants>$(DefineConstants);FX_SIMPLE_SECURITY_PERMISSIONS</DefineConstants> |
196 | | - <DefineConstants>$(DefineConstants);FX_NO_REFLECTION_MODULES</DefineConstants> |
197 | 201 | <DefineConstants>$(DefineConstants);FX_NO_REFLECTION_METADATA_TOKENS</DefineConstants> |
198 | 202 | <DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants> |
199 | | - <DefineConstants>$(DefineConstants);FX_NO_BASED_ARRAYS</DefineConstants> |
200 | 203 | <DefineConstants>$(DefineConstants);FX_NO_BINARY_SERIALIZATION</DefineConstants> |
201 | 204 | <DefineConstants>$(DefineConstants);FX_NO_WEB_CLIENT</DefineConstants> |
202 | 205 | <DefineConstants>$(DefineConstants);FX_NO_CONVERTER</DefineConstants> |
203 | | - <DefineConstants>$(DefineConstants);FX_NO_ICLONEABLE</DefineConstants> |
204 | 206 | <DefineConstants>$(DefineConstants);FX_NO_SECURITY_PERMISSIONS</DefineConstants> |
205 | 207 | <DefineConstants>$(DefineConstants);FX_NO_SYSTEM_CONSOLE</DefineConstants> |
206 | 208 | <DefineConstants>$(DefineConstants);FX_NO_ARRAY_KEY_SORT</DefineConstants> |
|
221 | 223 | </PropertyGroup> |
222 | 224 |
|
223 | 225 | <!-- Target Portable--> |
224 | | - <PropertyGroupCondition="'$(TargetFramework)'=='netcore78'"> |
| 226 | + <PropertyGroupCondition="'$(TargetFramework)'=='portable78'"> |
| 227 | + <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE</DefineConstants> |
| 228 | + <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE78</DefineConstants> |
225 | 229 | <DefineConstants>$(DefineConstants);FX_NO_CONVERTER</DefineConstants> |
226 | 230 | <DefineConstants>$(DefineConstants);FX_RESHAPED_REFLECTION</DefineConstants> |
227 | 231 | <DefineConstants>$(DefineConstants);FX_NO_ARRAY_LONG_LENGTH</DefineConstants> |
228 | 232 | <DefineConstants>$(DefineConstants);FX_NO_EXIT</DefineConstants> |
229 | 233 | <DefineConstants>$(DefineConstants);FX_NO_CHAR_PARSE</DefineConstants> |
230 | 234 | <DefineConstants>$(DefineConstants);FX_NO_DEFAULT_DEPENDENCY_TYPE</DefineConstants> |
| 235 | + <DefineConstants>$(DefineConstants);FX_SIMPLE_SECURITY_PERMISSIONS</DefineConstants> |
231 | 236 | <DefineConstants>$(DefineConstants);FX_NO_SYSTEM_CONSOLE</DefineConstants> |
232 | 237 | <DefineConstants>$(DefineConstants);FX_NO_TPL_PARALLEL</DefineConstants> |
233 | 238 | <DefineConstants>$(DefineConstants);FX_NO_BINARY_SERIALIZATION</DefineConstants> |
|
237 | 242 | <DefineConstants>$(DefineConstants);FX_NO_REFLECTION_METADATA_TOKENS</DefineConstants> |
238 | 243 | <DefineConstants>$(DefineConstants);FX_NO_REFLECTION_EMIT</DefineConstants> |
239 | 244 | <DefineConstants>$(DefineConstants);FX_NO_WEB_CLIENT</DefineConstants> |
240 | | - <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE</DefineConstants> |
| 245 | + <DefineConstants>$(DefineConstants);FX_NO_SECURITY_PERMISSIONS</DefineConstants> |
241 | 246 | <DefineConstants>$(DefineConstants);FX_NO_PARAMETERIZED_THREAD_START</DefineConstants> |
242 | 247 | <DefineConstants>$(DefineConstants);FX_NO_THREAD</DefineConstants> |
243 | 248 | <DefineConstants>$(DefineConstants);FX_EVENTWAITHANDLE_NO_IDISPOSABLE</DefineConstants> |
244 | 249 | <DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants> |
245 | 250 | <DefineConstants>$(DefineConstants);FX_NO_REGISTERED_WAIT_HANDLES</DefineConstants> |
246 | 251 | <DefineConstants>$(DefineConstants);FX_NO_THREADPOOL</DefineConstants> |
| 252 | + <DefineConstants>$(DefineConstants);PUT_TYPE_PROVIDERS_IN_FSCORE</DefineConstants> |
247 | 253 | <DefineConstants>$(DefineConstants);FX_NO_CUSTOMATTRIBUTEDATA</DefineConstants> |
248 | | - <DefineConstants>$(DefineConstants);QUERIES_IN_FSLIB</DefineConstants> |
249 | 254 | <DefineConstants>$(DefineConstants);FX_NO_CONCURRENT_DICTIONARY</DefineConstants> |
250 | 255 | <DefineConstants>$(DefineConstants);FX_ATLEAST_LINQ</DefineConstants> |
251 | 256 | <TargetFrameworkProfile>Profile78</TargetFrameworkProfile> |
252 | 257 | <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> |
253 | | - <OtherFlags>$(OtherFlags) --targetprofile:netcore</OtherFlags> |
254 | 258 | </PropertyGroup> |
255 | 259 |
|
256 | | - <PropertyGroupCondition="'$(TargetFramework)'=='netcore259'"> |
| 260 | + <PropertyGroupCondition="'$(TargetFramework)'=='portable259'"> |
| 261 | + <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE</DefineConstants> |
| 262 | + <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE259</DefineConstants> |
257 | 263 | <DefineConstants>$(DefineConstants);FX_NO_CONVERTER</DefineConstants> |
258 | 264 | <DefineConstants>$(DefineConstants);FX_RESHAPED_REFLECTION</DefineConstants> |
259 | 265 | <DefineConstants>$(DefineConstants);FX_NO_ARRAY_LONG_LENGTH</DefineConstants> |
260 | 266 | <DefineConstants>$(DefineConstants);FX_NO_EXIT</DefineConstants> |
261 | 267 | <DefineConstants>$(DefineConstants);FX_NO_CHAR_PARSE</DefineConstants> |
262 | 268 | <DefineConstants>$(DefineConstants);FX_NO_DEFAULT_DEPENDENCY_TYPE</DefineConstants> |
| 269 | + <DefineConstants>$(DefineConstants);FX_SIMPLE_SECURITY_PERMISSIONS</DefineConstants> |
263 | 270 | <DefineConstants>$(DefineConstants);FX_NO_SYSTEM_CONSOLE</DefineConstants> |
264 | 271 | <DefineConstants>$(DefineConstants);FX_NO_TPL_PARALLEL</DefineConstants> |
265 | 272 | <DefineConstants>$(DefineConstants);FX_NO_BINARY_SERIALIZATION</DefineConstants> |
|
269 | 276 | <DefineConstants>$(DefineConstants);FX_NO_REFLECTION_METADATA_TOKENS</DefineConstants> |
270 | 277 | <DefineConstants>$(DefineConstants);FX_NO_REFLECTION_EMIT</DefineConstants> |
271 | 278 | <DefineConstants>$(DefineConstants);FX_NO_WEB_CLIENT</DefineConstants> |
272 | | - <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE</DefineConstants> |
| 279 | + <DefineConstants>$(DefineConstants);FX_NO_SECURITY_PERMISSIONS</DefineConstants> |
273 | 280 | <DefineConstants>$(DefineConstants);FX_NO_PARAMETERIZED_THREAD_START</DefineConstants> |
274 | 281 | <DefineConstants>$(DefineConstants);FX_NO_THREAD</DefineConstants> |
275 | 282 | <DefineConstants>$(DefineConstants);FX_EVENTWAITHANDLE_NO_IDISPOSABLE</DefineConstants> |
276 | 283 | <DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants> |
277 | 284 | <DefineConstants>$(DefineConstants);FX_NO_REGISTERED_WAIT_HANDLES</DefineConstants> |
278 | 285 | <DefineConstants>$(DefineConstants);FX_NO_THREADPOOL</DefineConstants> |
| 286 | + <DefineConstants>$(DefineConstants);PUT_TYPE_PROVIDERS_IN_FSCORE</DefineConstants> |
279 | 287 | <DefineConstants>$(DefineConstants);FX_NO_CUSTOMATTRIBUTEDATA</DefineConstants> |
280 | | - <DefineConstants>$(DefineConstants);QUERIES_IN_FSLIB</DefineConstants> |
281 | 288 | <DefineConstants>$(DefineConstants);FX_NO_CONCURRENT_DICTIONARY</DefineConstants> |
282 | 289 | <DefineConstants>$(DefineConstants);FX_ATLEAST_LINQ</DefineConstants> |
283 | 290 | <TargetFrameworkProfile>Profile259</TargetFrameworkProfile> |
284 | 291 | <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> |
285 | | - <OtherFlags>$(OtherFlags) --targetprofile:netcore</OtherFlags> |
286 | 292 | </PropertyGroup> |
287 | 293 |
|
288 | 294 | <!-- Target Silverlight 3.0--> |
|
620 | 626 | <FSharpTargetsPath>..\Proto\$(protoCLIDir)\bin\Microsoft.Portable.FSharp-proto.Targets</FSharpTargetsPath> |
621 | 627 | </PropertyGroup> |
622 | 628 | </When> |
623 | | - <WhenCondition="'$(TargetFramework)'=='netcore78' or '$(TargetFramework)'=='netcore259'"> |
| 629 | + <WhenCondition="'$(TargetFramework)'=='portable78' or '$(TargetFramework)'=='portable259'"> |
624 | 630 | <PropertyGroup> |
625 | 631 | <FSharpTargetsPath>$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.Portable.FSharp.Targets</FSharpTargetsPath> |
626 | 632 | </PropertyGroup> |
|
686 | 692 | Text="Configuration '$(Configuration)' is not one of the supported configurations: Debug, Release, Proto" |
687 | 693 | Condition="'$(Configuration)'!='Release' and '$(Configuration)'!='Debug' and '$(Configuration)'!='VSRelease' and '$(Configuration)'!='VSDebug' and '$(Configuration)'!='Proto'"/> |
688 | 694 | <Error |
689 | | -Text="TargetFramework '$(TargetFramework)' is not one of the supported configurations: 'empty', net20, net40, sl3-wp, sl5, sl5-compiler, portable47, portable7,netcore78, netcore259" |
| 695 | +Text="TargetFramework '$(TargetFramework)' is not one of the supported configurations: 'empty', net20, net40, sl3-wp, sl5, sl5-compiler, portable47, portable7,portable78, portable259" |
690 | 696 | Condition="! ('$(TargetFramework)' == 'net40' or |
691 | 697 | '$(TargetFramework)' == 'net20' or |
692 | 698 | '$(TargetFramework)' == 'sl5' or |
693 | 699 | '$(TargetFramework)' == 'sl3-wp' or |
694 | 700 | '$(TargetFramework)' == 'portable47' or |
695 | 701 | '$(TargetFramework)' == 'portable7' or |
696 | | - '$(TargetFramework)' == 'netcore78' or |
697 | | - '$(TargetFramework)' == 'netcore259')"/> |
| 702 | + '$(TargetFramework)' == 'portable78' or |
| 703 | + '$(TargetFramework)' == 'portable259')"/> |
698 | 704 | <Error |
699 | 705 | Text="TargetFramework '$(TargetFramework)' is only supported when building FSharp.Core.dll. All other components must be built with TargetFramework=net40" |
700 | 706 | Condition="'$(AssemblyName)' != 'FSharp.Core' and '$(TargetFramework)' != 'net40'"/> |
|