How to exclude files from package with Build Action Content

We have a project (DotSpatial.Data.Rasters.GdalExtension32) that includes dll files as content. This is great when running locally, but these files end up being packaged into the content folder when we pack:

Is there a way to 1) pack using the command line and 2) prevent all of the warnings related to assemblies in the content folder?

Issue: Assembly outside lib folder.Description: The assembly 'content\xerces-c_2_8.dll' is not inside the 'lib' folder and hence it won't be added as reference when the package is installed intoa project.Solution: Move it into 'lib' folder.

Those warnings are harmless. You can just ignore them. If you want to turn the analysis off, you can pass the -NoPackageAnalysis flag to the pack command. Note, however, that it will also suppress all other analysis rules. We're also considerting allowing
turning off specific rule.