How do I suppress warnings for dependencies in sourcecode generators?

17 Views Asked by At

TL:DR; How do I disable warnings that come through a IncludeAssets="Build" dependency?

I've written a sourcecode generator that includes an external dependency (Scriban). Including dependencies is a bit tricky and as far as I understand you have to actually include the sourcecode of the dependency rather than the dll.

Anyway. Management enforces a strict <TreatWarningsAsErrors>True</TreatWarningsAsErrors> policy lately and the dependency rises some warnings. I'm not allowed to use <NoWarn> or <WarningsNotAsErrors>.

So what can I do, to disable warnings for this depdency?

Thanks

0

There are 0 best solutions below