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
4 ***********************************************************************************************
\r
5 Microsoft.FSharp.NetSdk.targets
\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
11 ***********************************************************************************************
\r
14 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
\r
17 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
\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
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
33 <!-- Locate and add mscorlib, unless NoStdLib is set -->
\r
35 <_ExplicitReference Include="$(FrameworkPathOverride)\mscorlib.dll" Condition=" '$(NoStdLib)' != 'true' " />
\r
39 <_TargetFrameworkVersionWithoutV>$(TargetFrameworkVersion)</_TargetFrameworkVersionWithoutV>
\r
40 <_TargetFrameworkVersionWithoutV Condition="$(TargetFrameworkVersion.StartsWith('v'))">$(TargetFrameworkVersion.Substring(1))</_TargetFrameworkVersionWithoutV>
\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
50 <Import Project="Microsoft.FSharp.Targets" />
\r
52 <PropertyGroup Condition="'$(PackProjectInputFile)' == ''">
\r
53 <PackProjectInputFile>$(MSBuildProjectFullPath)</PackProjectInputFile>
\r
56 <PropertyGroup Condition=" '$(FSharpCoreImplicitPackageVersion)' == '' ">
\r
57 <FSharpCoreImplicitPackageVersion>4.2.*</FSharpCoreImplicitPackageVersion>
\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
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