martinothamar / Mediator

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

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

Open jonmotos opened 3 months ago

jonmotos commented 3 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 3 months ago

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

jonmotos commented 2 months ago

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

<WarningsAsErrors>0219,CS0168</WarningsAsErrors>