Update dotnet/sdk to 2.0.0-preview2-006497
[platform/core/dotnet/build-tools.git] / dotnet / sdk / 2.0.0-preview2-006497 / FSharp / Microsoft.FSharp.NetSdk.targets
1 <!-- Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information. -->\r
2 \r
3 <!--\r
4 ***********************************************************************************************\r
5 Microsoft.FSharp.NetSdk.targets\r
6 \r
7 WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have\r
8           created a backup copy.  Incorrect changes to this file will make it\r
9           impossible to load or build your projects from the command-line or the IDE.\r
10 \r
11 ***********************************************************************************************\r
12 -->\r
13 \r
14 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
15 \r
16   <PropertyGroup>\r
17     <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>\r
18   </PropertyGroup>\r
19 \r
20   <PropertyGroup>\r
21     <AlwaysUseNumericalSuffixInItemNames>true</AlwaysUseNumericalSuffixInItemNames>\r
22     <DefineCommonItemSchemas Condition=" '$(DefineCommonItemSchemas)' == '' ">true</DefineCommonItemSchemas>\r
23     <DefineCommonReferenceSchemas Condition=" '$(DefineCommonReferenceSchemas)' == '' ">true</DefineCommonReferenceSchemas>\r
24     <DefineCommonCapabilities Condition=" '$(DefineCommonCapabilities)' == '' ">true</DefineCommonCapabilities>\r
25   </PropertyGroup>\r
26 \r
27   <ItemGroup Condition="'$(_DebugSymbolsProduced)' == 'true' and '$(PdbFile)' != ''">\r
28     <_DebugSymbolsIntermediatePathTemporary Include="$(PdbFile)"/>\r
29     <!-- Add any missing .pdb extension, as the compiler does -->\r
30     <_DebugSymbolsIntermediatePath Include="@(_DebugSymbolsIntermediatePathTemporary->'%(RootDir)%(Directory)%(Filename).pdb')"/>\r
31   </ItemGroup>\r
32 \r
33   <!-- Locate and add mscorlib, unless NoStdLib is set -->\r
34   <ItemGroup>\r
35     <_ExplicitReference Include="$(FrameworkPathOverride)\mscorlib.dll" Condition=" '$(NoStdLib)' != 'true' " />\r
36   </ItemGroup>\r
37 \r
38   <PropertyGroup>\r
39     <_TargetFrameworkVersionWithoutV>$(TargetFrameworkVersion)</_TargetFrameworkVersionWithoutV>\r
40     <_TargetFrameworkVersionWithoutV Condition="$(TargetFrameworkVersion.StartsWith('v'))">$(TargetFrameworkVersion.Substring(1))</_TargetFrameworkVersionWithoutV>\r
41   </PropertyGroup>\r
42 \r
43   <PropertyGroup>\r
44     <TargetProfile Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' " >mscorlib</TargetProfile>\r
45     <TargetProfile Condition=" '$(TargetFrameworkIdentifier)' != '.NETFramework' " >netcore</TargetProfile>\r
46     <TargetProfile Condition=" '$(TargetFrameworkIdentifier)' == '.NETStandard' and '$(_TargetFrameworkVersionWithoutV)' >= '2.0' " >netstandard</TargetProfile>\r
47     <OtherFlags>$(OtherFlags) --simpleresolution --nocopyfsharpcore</OtherFlags>\r
48   </PropertyGroup>\r
49 \r
50   <Import Project="Microsoft.FSharp.Targets" />\r
51 \r
52   <PropertyGroup Condition="'$(PackProjectInputFile)' == ''">\r
53     <PackProjectInputFile>$(MSBuildProjectFullPath)</PackProjectInputFile>\r
54   </PropertyGroup>\r
55 \r
56   <PropertyGroup Condition=" '$(FSharpCoreImplicitPackageVersion)' == '' ">\r
57     <FSharpCoreImplicitPackageVersion>4.2.*</FSharpCoreImplicitPackageVersion>\r
58   </PropertyGroup>\r
59 \r
60   <PropertyGroup Condition=" '$(DisableImplicitSystemValueTupleReference)' != 'true' ">\r
61     <_FrameworkNeedsValueTupleReference Condition=" ('$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == '.NETCoreApp') and !('$(_TargetFrameworkVersionWithoutV)' >= '2.0') ">true</_FrameworkNeedsValueTupleReference>\r
62     <_FrameworkNeedsValueTupleReference Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' and \r
63                                                     ('$(_TargetFrameworkVersionWithoutV)' == '4.0' or \r
64                                                      '$(_TargetFrameworkVersionWithoutV)' == '4.5' or \r
65                                                      '$(_TargetFrameworkVersionWithoutV)' == '4.6' or\r
66                                                      '$(_TargetFrameworkVersionWithoutV)' == '4.6.1' or\r
67                                                      '$(_TargetFrameworkVersionWithoutV)' == '4.6.2' or\r
68                                                      '$(_TargetFrameworkVersionWithoutV)' == '4.7') ">true</_FrameworkNeedsValueTupleReference>\r
69   </PropertyGroup>\r
70 \r
71   <ItemGroup>\r
72     <PackageReference Include="System.ValueTuple" Version="4.*" Condition=" '$(DisableImplicitSystemValueTupleReference)' != 'true' and '$(_FrameworkNeedsValueTupleReference)' == 'true' "></PackageReference>\r
73     <PackageReference Include="FSharp.Core" Version="$(FSharpCoreImplicitPackageVersion)"  Condition=" '$(DisableImplicitFSharpCoreReference)' != 'true' "></PackageReference>\r
74   </ItemGroup>\r
75 \r
76 </Project>\r