英文: Source Generator Running on Indirectly Associated Projects 问题 我已经构建了一个增量源代码生成器,并将其打包成一个NuGet包,以便...
How to configure/remove fields from the "Configure your new project" when creating a new project template in visual studio
英文: How to configure/remove fields from the "Configure your new project" when creating a n...
为什么不应该在SourceGenerator中读取文件?
英文: Why shouldn't I read files in a SourceGenerator? 问题 我正在创建一个SourceGenerator,它将读取一个YML文件,该文件定义...
如何从Roslyn中的符号信息构建通用类型
英文: How to construct generic type from symbol info in roslyn 问题 INamedTypeSymbol - System.Action&...
Roslyn 无法编译一个简单的项目
英文: Roslyn fails to compile a trivial project 问题 我正在尝试使用Roslyn来编译一个简单的项目,但它失败了。 考虑以下设置(假设c:\temp存在并且...
读取源生成器创建的属性的参数
英文: Read parameters of attribute created by source generator 问题 我有以下的源代码生成器 [Generator] public class...
提供方法的所有参数的修复方法(Roslyn – FixProvider)
英文: How to provide fix for all parameters of the method (Roslyn - FixProvider) 问题 我为添加验证以确保参数不为空的代码分...