Including FSharp.Core in a C# project: resolving type collisions

淺唱寂寞╮ 提交于 2019-12-01 16:36:06

You need to reference the 4.0 version of the F# runtime. This version corresponds with the 4.0 version of mscorlib and does not have the conflicting types. They will be in this directory

C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v4.0

You can resolve conflicts by using C# assembly aliases and qualifying source assembly explicitly in C# code: for example if you have Tuple type defined both in F# assembly and in you libraries.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!