dotnet / dotnet/docs

Where are the docs for writing source analyzers outside VS (for cross-platform CLI)?

Open
#31,802 1 comment 0 reactions 0 assignees View on GitHub
dotnet-csharp/svc roslyn-sdk/subsvc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

I'm not a typical Visual Studio User(because I'm not a full-time windows user). I need to write an analyzer. But all the docs explain how to write analyzers with VS. There is no documentation on how to get started building an analyzer on CLI. How to set up the project? It's really frustrating. Most languages' documentation first explains how to do things on CLI without extra tooling. The IDE documentation is totally separated. These things still give the feeling that .Net is not fully cross-platform.
Yes, it's cross-platform, but all the documentation is about VS, which is a windows-only product. So you need to use VS on windows to get the full gist of .NET.
The docs really should be only about the .NET and doing things on every platform. Yes VS is a good product. But there are many people who like to use CLI or other IDEs. I think C# really went in the wrong direction if you compare it to other languages. In most languages, everything is CLI first. But in C# everything is VS first.
I had gone a little off-topic. But all documentation regarding Roslyn should be written as they could be followed on any platform.

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 6e3fc905-7aa1-7f5e-9bfe-fbcef461ad5e
* Version Independent ID: a286e20b-1e43-dc57-e0fb-5a9dee7ec3f6
* Content: [Tutorial: Write your first analyzer and code fix](https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix)
* Content Source: [docs/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix.md](https://github.com/dotnet/docs/blob/main/docs/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix.md)
* Product: **dotnet-csharp**
* Technology: **csharp-roslyn**
* GitHub Login: @BillWagner
* Microsoft Alias: **wiwagn**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.