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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard