简体   繁体   English

在哪里阅读Microsoft.CodeAnalysis的文档?

[英]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.

相关问题 无法加载文件或程序集 Microsoft.CodeAnalysis - Could not load file or assembly Microsoft.CodeAnalysis 在Roslyn与Microsoft.CodeAnalysis中添加MetadataReference - Adding MetadataReference in Roslyn Vs Microsoft.CodeAnalysis Microsoft.CodeAnalysis无法加载文件 - Microsoft.CodeAnalysis failed to load file 为什么 Microsoft 分析器找不到 Microsoft.CodeAnalysis? - Why can't Microsoft analyzers find Microsoft.CodeAnalysis? Microsoft.CodeAnalysis:使用Newtonsoft JObject编译动态代码时出错 - Microsoft.CodeAnalysis: Error compiling dynamic code with Newtonsoft JObject 使用Roslyn(Microsoft.CodeAnalysis)查询WebSite项目的信息 - Using Roslyn (Microsoft.CodeAnalysis) to query information of WebSite projects 合并 SonarAnalyzer.CSharp 和 Microsoft.CodeAnalysis 规则集 - Merge SonarAnalyzer.CSharp and the Microsoft.CodeAnalysis rulesets 如何在 memory 中编译并使用 Microsoft.CodeAnalysis 获取程序集 - How to compile in memory and get assembly using Microsoft.CodeAnalysis SonarQube 没有找到 Microsoft.CodeAnalysis 1.3.1.0 但已安装 - SonarQube doesnt find Microsoft.CodeAnalysis 1.3.1.0 but it is installed Microsoft.CodeAnalysis.FxCopAnalyzers 和 Microsoft.CodeAnalysis 之间有什么区别? - What's the difference between Microsoft.CodeAnalysis.FxCopAnalyzers and Microsoft.CodeAnalysis?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM