Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to read docs for Microsoft.CodeAnalysis?

In Visual Studio 2015 (after installing the SDK preview), I created a 'diagnostic with code fix' project. The skeleton code is full of interesting types such as DiagnosticAnalyzer (under Microsoft.CodeAnalysis.Diagnostics) and CodeFixProvider (under Microsoft.CodeAnalysis.CodeFixes).

Where can I read the docs for these types? I couldn't find them on msdn. All I found was a different namespace with a confusingly similar name System.Diagnostics.CodeAnalysis .

Ideally msdn would have a full guide to writing a DiagnosticAnalyzer, as well as the usual reference documentation.

like image 786
Colonel Panic Avatar asked Dec 29 '14 10:12

Colonel Panic


Video Answer


2 Answers

These are all Roslyn related, so the best place to look is the Roslyn documentation

It has samples, walkthroughs, FAQ, etc. Specifically here's a PDF file showing How To: Write a C# Diagnostic and Code Fix using a DiagnosticAnalyzer.

MSDN doesn't usually have information on technologies still in preview. I can only guess that until VS 2015 ships all the MSDN articles would be published (but we'll have to wait and see).

like image 61
i3arnon Avatar answered Sep 23 '22 17:09

i3arnon


Roslyn is now moved to https://github.com/dotnet/roslyn

I think still the documentation is not that very great...!

my personal openion

like image 30
Basav Avatar answered Sep 22 '22 17:09

Basav