Where to place dlls for unmanaged libraries

Apr 18, 2012 at 2:12 PM

Cross posted to StackOverflow: http://stackoverflow.com/questions/10198428/nuget-where-to-place-dlls-for-unmanaged-libraries


I am trying to create a Nuget package for a library that depends on ghostscript and therefore references gsdll32.dll - an unmanaged library. I can't just included that a standard dll reference. Where do I put this in the nuget directory structure?

Currently I just have it in content/ghostscript but then I still have to prompt people to add a post build event to copy it to the bin. 

How is  this situation suppose to be handled?

Apr 18, 2012 at 3:11 PM

The SQLCE package has a similar issue that we handle via PS scripts. Checkout out the scripts at https://bitbucket.org/davidebbo/nugetpackages/src/1cba18b864f7/SqlServerCompact/Tools.