且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从命令行调用Roslyn分析仪

更新时间:2023-02-26 12:13:47

p> Roslyn Analyzers可以通过csc.exe或vbc.exe(编译器自己)运行,因此只需调用编译器。假设您的持续集成已经构建,并且您的分析器已添加到项目文件或NuGet包中,则应该已经可以正常工作了。

Roslyn Analyzers can be ran by csc.exe or vbc.exe (the compilers themselves), so just invoke the compiler. Assuming your Continuous Integration is already building, and your analyzers are added to the project file or to a NuGet package, this should Already Be Working™.