[英]Where to read docs for Microsoft.CodeAnalysis?
In Visual Studio 2015 (after installing the SDK preview ), I created a 'diagnostic with code fix' project. 在Visual Studio 2015中(安装SDK预览之后 ),我创建了一个“带代码修复的诊断”项目。 The skeleton code is full of interesting types such as
DiagnosticAnalyzer
(under Microsoft.CodeAnalysis.Diagnostics) and CodeFixProvider
(under Microsoft.CodeAnalysis.CodeFixes). 框架代码充满了有趣的类型,例如
DiagnosticAnalyzer
(在Microsoft.CodeAnalysis.Diagnostics下)和CodeFixProvider
(在Microsoft.CodeAnalysis.CodeFixes下)。
Where can I read the docs for these types? 我在哪里可以阅读这些类型的文档? I couldn't find them on msdn.
我在msdn上找不到它们。 All I found was a different namespace with a confusingly similar name System.Diagnostics.CodeAnalysis .
我发现的只是一个不同的命名空间,其名称与System.Diagnostics.CodeAnalysis 相似 。
Ideally msdn would have a full guide to writing a DiagnosticAnalyzer, as well as the usual reference documentation. 理想情况下,msdn将提供编写DiagnosticAnalyzer的完整指南,以及通常的参考文档。
These are all Roslyn related, so the best place to look is the Roslyn documentation 这些都与Roslyn有关,所以最好看的是Roslyn文档
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
. 它有样本,演练 , 常见问题解答等。具体来说,这是一个PDF文件,显示如何:使用
DiagnosticAnalyzer
编写C#诊断和代码修复 。
MSDN doesn't usually have information on technologies still in preview. MSDN通常没有关于仍在预览中的技术的信息。 I can only guess that until VS 2015 ships all the MSDN articles would be published (but we'll have to wait and see).
我只能猜测,直到VS 2015发布所有MSDN文章都会发布(但我们必须拭目以待)。
Roslyn is now moved to https://github.com/dotnet/roslyn Roslyn现在转移到https://github.com/dotnet/roslyn
I think still the documentation is not that very great...! 我觉得文档还不是那么好......!
my personal openion 我个人的开放
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.