Skip to content

solution-parser

4 posts with the tag “solution-parser”

Architecture tests beyond code — project layering and XAML rules with Solution.Parser

A 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.

Code rules for everyone, architecture rules included — and when a Roslyn analyzer is the better home

Solution.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.

Your solution as a queryable model — code rules as LINQ with Solution.Parser

The 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.