Skip to content

Commit

Permalink
Disable implicit FSharp.Core and System.ValueTuple when using Central…
Browse files Browse the repository at this point in the history
… Package Management
  • Loading branch information
rstm-sf committed Sep 19, 2022
1 parent 9dc6942 commit e4724d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/FSharp.Build/Microsoft.FSharp.Core.NetSdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>

Expand Down
5 changes: 5 additions & 0 deletions src/FSharp.Build/Microsoft.FSharp.NetSdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
<DotnetFsiCompilerPath Condition="'$(DotnetFscCompilerPath)' == ''">"$(MSBuildThisFileDirectory)fsi.dll"</DotnetFsiCompilerPath>
</PropertyGroup>

<PropertyGroup Condition=" '$(ManagePackageVersionsCentrally)' == 'true' ">
<DisableImplicitSystemValueTupleReference Condition="'$(DisableImplicitSystemValueTupleReference)' == ''">true</DisableImplicitSystemValueTupleReference>
<DisableImplicitFSharpCoreReference Condition="'$(DisableImplicitFSharpCoreReference)' == ''">true</DisableImplicitFSharpCoreReference>
</PropertyGroup>

<ItemGroup Condition="'$(DisableImplicitSystemValueTupleReference)' != 'true'
and ('$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == '.NETCoreApp')
and !('$(_TargetFrameworkVersionWithoutV)' >= '2.0' )">
Expand Down

0 comments on commit e4724d1

Please sign in to comment.