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:
nuget.exe pack "C:\dev\DotSpatial\DotSpatial.Data.Rasters.GdalExtension32\DotSpatial.Data.Rasters.GdalExtension32.csproj"
We're able to get copies of the dlls into the lib folder by adding a files section in our .nuspec.
<file src="..\Debug\bin\Data Extensions\GDAL\*.dll" target="lib\net40" />
<file src="..\Debug\bin\Data Extensions\GDAL\*.pdb" target="lib\net40" />
However, we are left with copies in the content folder.
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.