Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8741465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:19:15+00:00 2026-06-13T11:19:15+00:00

In the project I am currently working with, we heavily uses the post build

  • 0

In the project I am currently working with, we heavily uses the post build event and relative path references. i.e. we have all the inter-solution references implemented as dll reference with relative path where the referencing solution uses the post build event to drop binary to.

This works well in the visual studio enviornmnet, now we are looking to a automatic way of building the source code and create daily binary drops. The TFS build does not seem to play well with the relative path reference.

Is there any quick solution to this? I cannot believe this is so complicated as all we need is to just schedule a build to get the latest of source code, build it as to visual studio definition and drop the binaries to a shared folder.

Thanks a lot

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:19:16+00:00Added an answer on June 13, 2026 at 11:19 am

    I have seen quite a few projects that use post build events break when used with TFS Build System. This problem usually arises from the different in the way Visual Studio passes the $(OutDir) variable to MSBuild engine than how TFS Build engine does it. Essentially when you compile within Visual Studio, the $(OutDir) path is (usually) set to bin\debu or bin\release whereas within the TFS BUild System it gets set to the Binaries directory on the build machine where the build happens.

    If this is what is blighting your builds then there are a couple of ways to fix this

    Approach 1

    1. Ensure your post build events do not rely on hard coded paths like
      ..\bin\release etc. instead anywhere that you use bin\debug or
      bin\release use $(OutDir)
    2. To get to the path of the solution file
      that is being built use $(SolutionDir) or $(solutionPath)
    3. Use the list here to make necessary changes to your path variables in
      your build scripts

    Approach 2

    1. Use this link here to customize your build template so that it
      uses the visual studio mode of compilation. You should not have to
      change your post build events for this to work.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The project I'm currently working on uses Nant build scripts for the continuous integration
The project I'm currently working on generates 30+ warnings each time it gets build.
I have a MVC 4 project I am currently working on and need some
I am currently working on a project about calculations.I have done the main part
For the project I'm currently working on I have a database with locations (restaurants,
i would like to have your opinion in a project i am currently working
A project I'm currently working on requires the application to discover all audio tracks
Not all projects require Databases. Project I am currently working on doesn't want any
I have project which is currently working and was developed long time back on
I have a project I'm currently working on, which I am contemplating making open

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.