I\'m trying to build a NuGet package that adds our company\'s code analysis dictionary automatically and updatable.
The rule set is added in the content folder and n
I had the same problem as reported in the comments: the dictionary was added as content, not as a CodeAnalysisDictionary.
I added this piece of code in the install.ps1 of the nuget package to solve this:
$dictionary = $project.ProjectItems | Where-Object {$_.Name.EndsWith("CustomDictionary.xml")}
$dictionary.Properties.Item("Buildaction").Value = [int]5;