I'm referencing the BlingFireNuget package in my csproj. It adds a bunch of files to my project, including a couple cs files, like BlingFireUtils.cs
. These are adding hundreds of code analysis warnings when I build:
There must be some way to exclude these from code analysis, but still include them in compilation, but I can't figure out how. I did modify the csproj to at least not include them in Solution Explorer, but that didn't do the trick:
<ItemGroup>
<Compile Update="@(Compile)">
<Visible Condition="'%(NuGetItemType)' == 'Compile'">false</Visible>
</Compile>
</ItemGroup>
Edit:
I did try modifying the .editorconfig
to treat these files as generated, even tried the absolute path, and that didn't work either:
[C:\Users\unionp\.nuget\packages\blingfirenuget\0.1.8\contentFiles\cs\any\BlingFireUtils.cs]
generated_code = true
[C:/Users/unionp/.nuget/packages/blingfirenuget/0.1.8/contentFiles/cs/any/BlingFireUtils.cs]
generated_code = true