Can you mix .net languages within a single project?

后端 未结 5 870
暗喜
暗喜 2020-12-01 06:35

Can you mix .net languages within a single project? So pre-compiled, I would like to call classes and methods of other source files.

For both web and apps?

<
5条回答
  •  余生分开走
    2020-12-01 07:36

    CMS mentions an interesting approach, but in reality I would suggest you keep things simple and have different assemblies (projects) for the C# and F# code. There are well documented communication points between C# and F# (such as here and here) - I'd recommend them instead. The differences between C# and F# (especially with F# having a different runtime!) are quite large...

提交回复
热议问题