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
Highlighted
Continued Contributor
Continued Contributor

Re: Plugin written in F#

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
Highlighted
Continued Contributor
Continued Contributor

Re: Plugin written in F#

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (4,909)