martinothamar / Mediator

A high performance implementation of Mediator pattern in .NET using source generators.
MIT License
2.14k stars 71 forks source link

Add Analyzers "Warnings as Errors" example to quick start #156

Open jonmotos opened 2 months ago

jonmotos commented 2 months ago

It would be very handy to see in the quick-start the necessary csproj configuration to produce build errors instead of warnings with the included Analyzers!

Happy to create a PR.

martinothamar commented 2 months ago

Sure, feel free :+1: are you thinking of TreatWarningsAsErrors or adjusting them through .editorconfig or something?

jonmotos commented 1 month ago

Yea I was thinking like the following - just gotta find the right warnings.

<WarningsAsErrors>0219,CS0168</WarningsAsErrors>