Executable program while debugging.

M

Mr. X.

In VB.NET 2008 (VS 2008)

Where is the executable path while debugging my code?
(Can I control where should be the executable file while debugging).

Thanks :)
 
A

Armin Zingler

Am 30.03.2010 23:41, schrieb Mr. X.:
In VB.NET 2008 (VS 2008)

Where is the executable path while debugging my code?
(Can I control where should be the executable file while debugging).

While debugging, it's already been loaded from it's location.
You can not change it while debugging.

In the project properties, you can change the output path used at compile time.

If you want to determine the exe location by code, look at Application.ExecutablePath
 
M

Mr. X.

I meant :
For debugging - I want to control where the exe file of my application will
be (and not just bin/debug).

That is for :
I have several projects in the solution, and I want them all will be
compiled to the same directory.
(Can I declare it somehow on the solution?)

Thanks :)
 
M

Mr. X.

I have VS 2008 (I use VB.NET)
I didn't see any build tab.
What I see is compile tab & debug tab (others, which I don't know if
relevant are :
Application, Reference, Resources, Services, Settings, Signing, My
Extensions, Security),
and I didn't see where I can change the bin\Debug folder.

Where is it ?
Thanks :)

Johnny J?rgensen said:
That's no problem. You need to set it for all projects in your solution,
though.

Open the project properties, select the Build tab, select "Debug" from
the Configuration and enter the path where you want to put your files in
the Output box (Right nowq it probably says "Bin\Debug", but it can just
as well be another path including drive letter and full directory path

Good luck,
Johnny J.




-----Ursprungligt meddelande-----
Från: Mr. X. [mailto:nospam@nospam_please.com]
Anslaget den: den 31 mars 2010 09:39
Anslaget i: microsoft.public.dotnet.languages.vb
Konversation: Executable program while debugging.
Ämne: Re: Executable program while debugging.

I meant :
For debugging - I want to control where the exe file of my application
will
be (and not just bin/debug).

That is for :
I have several projects in the solution, and I want them all will be
compiled to the same directory.
(Can I declare it somehow on the solution?)

Thanks :)

Armin Zingler said:
Am 30.03.2010 23:41, schrieb Mr. X.:

While debugging, it's already been loaded from it's location.
You can not change it while debugging.

In the project properties, you can change the output path used at compile
time.

If you want to determine the exe location by code, look at
Application.ExecutablePath
 
A

Armin Zingler

Am 31.03.2010 18:22, schrieb Mr. X.:
On compile page - The "Build output path" is not the path for debug.

What do you mean? I thought you were looking for the path of the exe file.
 
M

Mr. X.

O.K.
Solved.

Maybe my English is not so good,
but I think I had explain myself well enough.

I meant :
There are two exe - one for debug, and one for release.
I want to change the default folder for the debug.

I saw that on project -> properties -> debug, there is a textbox labeled :
"Working directory".
There I can choose manually the output folder for exe for debug.

Thanks, anyway
:)
 
A

Armin Zingler

Am 31.03.2010 21:24, schrieb Mr. X.:
O.K.
Solved.

Maybe my English is not so good,
but I think I had explain myself well enough.

I meant :
There are two exe - one for debug, and one for release.
I want to change the default folder for the debug.

What is a "default folder"? Default for what? For every new project?
I saw that on project -> properties -> debug, there is a textbox labeled :
"Working directory".
There I can choose manually the output folder for exe for debug.

No, that's the working directory. It can be different from the
Exe directory. Every process has a "current directory". It is
the directory that is used for file system access if
no path or a relative path is specified. If you start debugging
from VS, the current directory is set to the working directory.
It's returned from System.IO.Directory.GetCurrentDirectory

In opposite, the Exe is put into the "output path" on the "Compile" tab.
You can specify it per configuration (selectable in the combobox
at the top).

I hope that helps even if I still haven't fully understood what you
are looking for. But that may be my English that is also not
my native lanugage. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top