如何在 Visual Studio 2017 中手动添加 DiagnosticAnalyzer
How to add a DiagnosticAnalyzer in Visual Studio 2017 manually
我在 Visual Studio 2017 年开发 C# DiagnosticAnalyzer。
"Analyzer with Code Fix (.Net Standard)" 的模板效果很好,我创建的分析器安装在 Visual Studio 的实验实例中。
是否可以在不支持 Vsix 模板的情况下将我的分析器添加到 Solutions/Projects,即将分析器 Dll 复制到某个文件夹?
Is it possible to add my Analyzer to Solutions/Projects without any support of Vsix templates?
是的,您可以通过 NuGet 将分析器添加到特定的解决方案或项目。
[Can I] copy the Analyzer Dlls to a certain folder?
据我所知,这是不支持的。 official documentation on installing Roslyn analyzers 仅提及 NuGet 和 VSIX.
我在 Visual Studio 2017 年开发 C# DiagnosticAnalyzer。
"Analyzer with Code Fix (.Net Standard)" 的模板效果很好,我创建的分析器安装在 Visual Studio 的实验实例中。
是否可以在不支持 Vsix 模板的情况下将我的分析器添加到 Solutions/Projects,即将分析器 Dll 复制到某个文件夹?
Is it possible to add my Analyzer to Solutions/Projects without any support of Vsix templates?
是的,您可以通过 NuGet 将分析器添加到特定的解决方案或项目。
[Can I] copy the Analyzer Dlls to a certain folder?
据我所知,这是不支持的。 official documentation on installing Roslyn analyzers 仅提及 NuGet 和 VSIX.