Home > Archive > Visual Studio > July 2004 > vs2003 - project - working directory
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
vs2003 - project - working directory
|
|
| news.microsoft.com 2004-07-20, 8:59 am |
| Hi NG,
I want to start my vs2003-project in the solutionfolder of the project and
not in /bin/debug because there are external files i wand to load. If i goto
project-prefenences-Debug-"Working Directory" an add a relative path like
"." i get at runtime different working paths in my app
(System.IO.Directory.GetCurrentDirectory()) depending on how i have started
vs2003 (directly or doubleclick sln-file).
I don't want to use absolute paths because im running cvs.
any idea to fix the problem?
Thanks,
Benjamin
| |
| Dincer Ozturan 2004-07-21, 3:58 pm |
| Hi,
When accessing the files, try using Application.StartupPath rather
than System.IO.Directory.GetCurrentDirectory() and leave
WorkingDirectory field of Project Properties blank.
Good Luck,
Dincer
|
|
|
|
|