|
-
Feb 23rd, 2008, 04:34 PM
#1
Thread Starter
Member
[2008] Working directory changed from 2005?
Hi,
I'm using VB.net Express 2008. In the 2005 version, I could set the working directory in the debug properties panel like this:
..\Build
So if my project is in c:\Projects\MyProject, the debug version is compiled in c:\Projects\Build
In 2008, I get an error message when compiling, saying that the folder does not exist. It quotes the folder as being:
c:\Projects\MyProject\bin\build
Is there a setting to change this, is it a permanent change in 2008, or a new bug?
In case you wonder why I need to specify it this way, the project is developed on more than one machine, with different paths. The build folder also contains other files generated by other applications, and so needs to be a separate path.
Thanks in advance for any help!
-
Feb 23rd, 2008, 04:42 PM
#2
Re: [2008] Working directory changed from 2005?
can't you use my.application.info.directorypath?
- which is the path of your executable .exe file
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Feb 23rd, 2008, 06:00 PM
#3
Re: [2008] Working directory changed from 2005?
I've been working on an application in Visual Studio 2008 and all of my build paths are relative as well (they go back several directories and go into several more). They work fine and dandy.
There must be something wrong with your paths. Re-check them. You can paste them into Explorer to test them too.
 Originally Posted by .paul.
can't you use my.application.info.directorypath?
- which is the path of your executable .exe file
The question is about building the application and the directories the binary is created in. It's not a code issue.
-
Feb 24th, 2008, 03:53 AM
#4
Thread Starter
Member
Re: [2008] Working directory changed from 2005?
There must be something wrong with your paths. Re-check them. You can paste them into Explorer to test them too
I've just tried it, and it's fine there. The path it is trying to find suggests I am in a subdirectory of the project bin subdirectory when I compile. So I'm guessing it's starting at the bin/debug folder, which would be the default path if you didn't cahnge anything. It's as if this is cached somehow, and it's appending to this value.
-
Feb 25th, 2008, 08:17 AM
#5
Thread Starter
Member
Re: [2008] Working directory changed from 2005?
Quick update. I tried...
..\..\..\build
which works in explorer from the bin\debug subfolder. In VS 2008, it says it's an invalid path.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|