Post-Build Process - Dealing with Working Directory

Posted on 2004-11-22
Last Modified: 2010-04-24
Part of our project build process not only builds the project's .exe, but it also compiles .fx files into .fxo format.

Our programmers all use a custom working directory specified in their project settings, but since they're doing this, the executable doesn't refer to the freshly built .fxo files.

While researching what macro commands exist in Visual Studio, I couldn't find a macro for getting the Working Directory specified in the project settings.  What I wanted to do was make a generic post build process that would copy the .fxo files into the working directory so the project would run.

Any suggestions generic enough for a team environment?


PS - We're using Visual Studio .NET 2003.
Question by:Gonthax
    1 Comment
    LVL 6

    Accepted Solution

    The first thing that comes in mind - to add some code in the debug version of your app(or create small separate tool) .Something like

    #ifdef _DEBUG
    // $(InputDir) passed as command-line argument
    // so find all FXO files and copy them in the current directory

    I don't think it would be much trouble.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
    In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now