c# - Reference correct dll file at realeas? -
i have reference 32 bit dll
file in windows service application
.
i'm using any cpu
during debug
, @ point regular 32 bit version
of dll file works fine. but, when built in 64 bits
, installed on 64 windows service
bad image when using method dll file
.
i have 64 bit version
of dll
file not work in debug mode.
how make use 64 @ release , 32 in debug without manually remove , add reference?
you can't. have compile 1 or other. if reference 32-bit dll, must set application target x86 both debugging , release. if want run in full 64-bit mode, need reference 64-bit dll , set application target x64 in debug mode , in release mode well.
Comments
Post a Comment