web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Plugin written in F#
Power Apps
Unanswered

Plugin written in F#

(0) ShareShare
ReportReport
Posted on by 31

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#.

I have the same question (0)
  • Verified answer
    David Jennaway Profile Picture
    716 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard