c++ - Visual Studio 2008: Use external Debug-DLL for Debug-Run and external Release-DLL for Release-Run -
short version: if running program vs2008 in release mode, want use patha\externaldll.dll
. if running program vs2008 in debug mode, want use pathb\externaldll.dll
long version: have programm linked against external dll-files (vtk). have built external application myself in both debug , release mode. external dll-files located this:
<some path>\debug\externaldll.dll <some path>\release\externaldll.dll
(so called same, have different folders).
i want step external code debug builds, want release builds use release dlls testing execution time (i process big datasets).
linking according dlls easy, have project settings that. when executing, visual studio takes first dll finds within path environment variable.
cumbersome solution idea: having path variable like: path=;%currentdllpath%; , setting currentdllpath in post-build-step. there no solution built-in vs2008?
actually there built-in , easy way:
the "environment"-variable within "project settings"/debugging.
so setting environment-variable to
path=c:\paraview\paraview-3.8.0\gen\bin\$(configurationname);%path%
for project exectued trick.
the question answered several times here, didn't find (e.g. how set path in visual studio?)
Comments
Post a Comment