cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Plugin written in F#

I googled the documentation, forums and still no support to F# or C# 8.0 (.NET Core).
When it comes to domain modelling with Sum types (aka Option types) and pattern patching, F# is much powerful than C#.
There are new exciting features in C# 8.0 but unfortunately C# 8.0 can only be written in .NET Core environment, which isn't supported with CDS. 

Does anyone know how to use F# in CDS? My goal is write and register a plugin written in F#.

1 ACCEPTED SOLUTION

Accepted Solutions
Solution Supplier
Solution Supplier

I would think it is possible to write a plugin in F#. The main requirement is that you use .Net Framework 4.6.2, which I think is supported with F#. The main step that I think you'll need is to use ILMerge to merge in the FSharp.Core.dll assembly

I can see a couple of potential blockers:

  1. The overall assembly cannot exceed 16 MB. I doubt that the FSharp.Core.dll assembly is that big
  2. The FSharp.Core.dll assembly may be something that contravenes the code access security applied by the sandbox process. The most likely to cause problems would be reflection

This article describes getting an F# plugin to work for CRM 2013, and the plugin infrastructure hasn't changed substantially since then.

There's no news on .Net Core support. To get this would need more changes from Microsoft in the overall plugin infrastructure

View solution in original post

1 REPLY 1
Solution Supplier
Solution Supplier

I would think it is possible to write a plugin in F#. The main requirement is that you use .Net Framework 4.6.2, which I think is supported with F#. The main step that I think you'll need is to use ILMerge to merge in the FSharp.Core.dll assembly

I can see a couple of potential blockers:

  1. The overall assembly cannot exceed 16 MB. I doubt that the FSharp.Core.dll assembly is that big
  2. The FSharp.Core.dll assembly may be something that contravenes the code access security applied by the sandbox process. The most likely to cause problems would be reflection

This article describes getting an F# plugin to work for CRM 2013, and the plugin infrastructure hasn't changed substantially since then.

There's no news on .Net Core support. To get this would need more changes from Microsoft in the overall plugin infrastructure

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Users online (9,517)