fsharp / fsharp/fslang-suggestions

Change extern to support LibraryImportAttribute

Open
#1,207 2 comments 0 reactions 0 assignees View on GitHub
approved-in-principle area: interop
Dominant language
No language data
Stars
373
Forks
21
PR merge metrics
No merged PRs in 30d

Description

.NET 7 shipped with a [feature](https://www.youtube.com/watch?v=ucNcRtnifXY) that is C# exclusive at the moment. Is it possible to support this in F#? It looks like LibraryImport and Source Generators like [CsWin32](https://github.com/microsoft/CsWin32) are going to be a bigger part of the future of .NET and F# is being left behind.

![Capture](https://user-images.githubusercontent.com/37316265/201812873-a85d5f7e-4b8d-4ea5-9e15-0828af29f138.PNG)

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no repository files, tests, or entry points. Start by reviewing the linked LibraryImport feature and the F# support gap described in the issue, along with the CsWin32 example. Done would require a defined implementation path for supporting LibraryImportAttribute and source generators in F#.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, fsharp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.