c# - Compile both 32 and 64 bit from the same projects? -


i using pcapdot.net dlls, both 32 , 64 bit. possible create 1 project 32 , 64 dlls after compiling create 2 different exe files 32 , 64 bit?

your problem, probabbly (it's not clear) you're linking dll in project , pick right dll (32 or 64 bit) relative build of project.

the solution referebce in project dll common name:

say pcapdot.net dll, both platforms.

and in post build event of project, based on current configuration of build, copy platform specific pcapdot.net dll folder project loads references.

so when app loads load "correct" version of pcapdot.net dll.

to more clear:

say reference in project pcapdot.net dll

"debug\external"

in project tree have

"your_project_name\dlls\x86\pcapdot.net dll"

and

"your_project_name\dlls\x64\pcapdot.net dll"

say setuped project fro 64 bit compilation. in post build event, check , go copy

"your_project_name\dlls\x64\pcapdot.net dll"

into

"debug\external"

.

hope helps.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -