Skip to content

Solution.Parser

Your solution as a queryable model: solutions, projects, C#, XAML and NuGet packages for architecture tests and tooling.

Open source
4 posts33 min reading time
Start with part 1 →
  1. Your solution as a queryable model — code rules as LINQ with Solution.ParserThe team guideline says "no DateTime.Now", and code review finds it again every other week. Solution.Parser turns the whole solution into a typed model you query with LINQ, so a rule like that becomes a five-line unit test with clickable findings. How to get started, how to structure a rule suite, and how to prove a rule actually catches something.8 min read
  2. Reading code like code — statements, types and symbols in Solution.ParserMost code rules start with a string search and end with false positives. Solution.Parser's model lets a rule walk the code the way you read it, the method, the loop in it, the call in the loop, with types taken apart and, when the syntax isn't enough, the compiler's answer to "which method is this really?".9 min read
  3. Architecture tests beyond code — project layering and XAML rules with Solution.ParserA comment in a csproj can't stop a reference that quietly drags Roslyn into a package that never needed it, and no compiler notices a typo in a WPF binding path. Two worked examples from Solution.Parser's own repository: layering rules over projects and packages, and XAML rules checked against the C# behind them.9 min read
  4. Code rules for everyone, architecture rules included — and when a Roslyn analyzer is the better homeSolution.Parser started as a way to make Roslyn-analyzer-style rules something every developer can write. Along the way it became just as useful for architecture validation: layering, project references, packages and XAML. How the pieces fit, and when a rule should graduate to a real analyzer.7 min read