I have two Windows Application projects and i need to use Application.StartupPath() to read from some files. Build output [in Project Properties] for both projects is set to bin\Release. Still, for Project A the executable is created in bin\Debug so Application.StartupPath() points to bin\Debug. But every time i compile Project B, the executable is created in bin\Release [so Application.StartupPath() poinst to bin\Release], but there is another executable in bin\Debug that at some compiles gets updated. It seems to be a random behaviour. Or am I missing another setting? I need to be able to know exactly where my output will be created.
thank you
p.s. That's how Project B behaves on a vista machine. But on an XP machine Application.StartupPath() sometimes points to bin\Debug, and other times to bin\Release. :-??