The Roslyn Sentinel★★★★★gem
jonathanalgar/CustomCode-AnalyzerA real Roslyn DiagnosticAnalyzer + CodeFixProvider, packaged both as a VS/VSCode/Rider-installable analyzer (NuGet dev-dependency, auto-referenced via OutSystems.ExternalLibraries.SDK) and a VSIX for Visual Studio, that gives live IDE feedback + one-click quick-fixes for ODC External Libraries SDK rule violations (OS-ELG-MODL-*) as you type C# code -- before you ever upload the assembly to the ODC Portal.Technique: Two-phase Roslyn analysis: RegisterSymbolAction for instant per-declaration checks (e.g. method name starts with underscore) vs RegisterCompilationEndAction with a ConcurrentDictionary to check whole-project invariants (e.g. exactly one [OSInterface] must exist) that need the complete semantic model. CodeFixProvider.RegisterCodeFixesAsync first checks `compilation.ReferencedAssemblyNames` for `OutSystems.ExternalLibraries.SDK` before offering any fix, so the analyzer only activates in genuine ODC external-library projects and stays silent elsewhere.odc-external-logicroslyn-analyzercsharpvisual-studio-extensionstatic-analysiscode-fix-provider
C# · ★ 3 · extensions-integration-studio