I have a .NET Core project and I'm trying to target x64.
However, when I build with Visual Studio I always end up with the x86 version of the PDFNet assembly in my bin folder.
Visual Studio 2015 json file contains (among other things):
"dependencies": {
"PDFNetNoLoader": "6.5.4",
},
"frameworks": {
"net451": {
}
},
"buildOptions": {
"platform": "x64"
},
If I run with the x86 version I naturally get a BadImageFormatException. I have to go into PDFNet's nuget build directory and manually copy the x64 assembly into my bin folder to fix the issue.
Any idea why the x64 version of PDFNet is not automatically copied into my bin?
Thanks,
Martin