Results 1 to 5 of 5

Thread: [2008] Working directory changed from 2005?

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    36

    [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!

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: [2008] Working directory changed from 2005?

    can't you use my.application.info.directorypath?
    - which is the path of your executable .exe file

  3. #3
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    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.
    Quote 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.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    36

    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.

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    36

    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
  •  



Click Here to Expand Forum to Full Width