Dynamic External Program in debug tab vs2008
Posted
by Justin Holbrook
on Stack Overflow
See other posts from Stack Overflow
or by Justin Holbrook
Published on 2010-06-02T19:09:20Z
Indexed on
2010/06/02
19:14 UTC
Read the original article
Hit count: 154
visual-studio-2008
I am playing with NServiceBus using the generic host; specifically I'm working on having 2 different configurations, a debug configuration that logs to the console and a release version that logs to metabase (I'm using VS2008). I had just made some code changes (commented out a logging statement), but it was still showing in the log when I ran my solution. I eventually figured out that I had switched configuration to release, made my change, then built. I think the change isn’t being picked up because in the debug tab of my project properties I have the following (abbreviated) path to the generic host:
C:...\Inventory\bin\Debug\NServiceBus.Host.exe
Notice it specifically points to the debug directory. So basically even though I’m in release config it’s firing up the host in the debug directory which I think is then using the dll's in the debug directory (which is why my changes didn't get picked up).
I tried to come up with a workaround, but have been unsuccessful. VS Macros (like $(Configuration)) and relative pathing are not allowed here.
Any ideas? I hope this doesn’t require a custom build task.
© Stack Overflow or respective owner