roslyn-code-analysis专题提供roslyn-code-analysis的最新资讯内容,帮你更好的了解roslyn-code-analysis。
<pre><code>private static void Main(string[] args) { var syntaxTree = CSharpSyntaxTree.ParseText(@&#34;C:\Users\Umut\source\rep
说我有以下代码: <pre class="lang-cs prettyprint-override"><code>using System; public class Class { public static voi
让我们报告此诊断的一些诊断和注册代码修复。 <pre><code>private static void OnCompilation(CompilationAnalysisConte
当用户在我们的产品中创建 <code>C# script</code> 时,我发现发送参数的唯一方法是通过“globals”参数。调
我正在尝试使用 Microsoft.VisualStuio.LanguageServices 枚举解决方案的所有项目。 这对于 VisualStudio 2019 工作正
我有一个从 <code>CompletionService.GetDescriptionAsync(Document, CompletionItem)</code> 返回的方法给了我以下描述:
我正在使用 <a href="https://www.nuget.org/packages/Microsoft.CodeAnalysis.PublicApiAnalyzers/" rel="nofollow noreferrer">Microsoft.C
我现在遇到过几次我启用了 <em>nullable</em> 并且将属性或字段标记为可空接口类型(附加 <code>?</code>)的
我已经将 EntityFramework 6 的项目实现到 EntityFramework Core 3.1 中。我是 Roslyn API 的新手。 <strong>Sample.cs<
我已经将 EntityFramework 6 的项目实现到 EntityFramework Core 3.1 中。 使用 Roslyn API,我必须迁移实体框架的属
我已在包含 razor 视图和/或 razor 页面的项目中安装了 <code>Microsoft.CodeAnalysis.PublicApiAnalyzers</code> nuget 包 (v
所以,我正在编写一个代码生成器工具,我想从用户必须指定的现有 csproj 中获取默认命名空间。本质上
我已经将 EntityFramework 6 的项目实现到 EntityFramework Core 3.1 中。使用 Roslyn API,我必须将实体映射到实体框
我团队中的开发人员经常会在循环中编写代码,从而进行相对较慢的调用(即数据库访问或 Web 服务调用
我的公司一直在使用 Roslyn API 开发静态分析工具,因为它处于测试阶段。目前我们使用 <code>Microsoft.CodeAn
在 .NET 5 中有两种分析器:代码质量和代码风格。它们在 <code>.editorconfig</code> 中指定。 手动指定每
我正在尝试编写一个 C# 源代码生成器,该生成器在某些条件下使用 <code>GeneratorExecutionContext.ReportDiagnostic
<code>Visual Studio 2019</code> 对私有 <code>_myNum</code> 给出以下建议:改用 <code>auto-property</code>。起初我很想这
在我的 .net 项目(目标框架 4.7)中,在代码分析选项卡中,我看到 <strong>Run on build</strong> 被选中。所以
我尝试使用 .NET 5 Source Generators 从命令和查询开始生成 webapi 控制器。 我使用这篇文章[示例]<a href="