dotnet / dotnet/sdk

F# projects should support processing Analyzers

Open
#51,133 1 comment 1 reaction 1 assignee Claimed by @baronfel View on GitHub
Area-FSharp Area-NetSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Is your feature request related to a problem? Please describe.

👋 I'd like to start the discussion around supporting the detection and writing of `AnalyzerAssembly` in F# projects.

F# has [community-supported analyzers](https://github.com/ionide/FSharp.Analyzers.SDK) and we follow the same pattern of packaging with the `analyzers/dotnet/fs/` convention.

Currently, to support this in FsAutocomplete (the F# LSP for vs-code), we're doing this detection crudely in Ionide's Design-time build system [Ionide/Proj-Info](https://github.com/ionide/proj-info/pull/238), but it would be better to move this into the SDK since it already has detection for C#/VB.

### Describe the solution you'd like

I have a branch doing some minimal changes around this:

https://github.com/TheAngryByrd/dotnet-sdk/commit/08cde9fcb35899563fe8486e753c914c83abedb6

This still needs tests for handling different compiler versions like roslyn does but I wanted to get feedback on the initial approach.

### Additional context

@baronfel @T-Gro

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.