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

  • Home
  • SEARCH
  • 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 6249987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:20:23+00:00 2026-05-24T13:20:23+00:00

I have an MsBuild file which shells out to TFS using tf.exe for a

  • 0

I have an MsBuild file which shells out to TFS using tf.exe for a few things. Unfortunately the tf.exe file has been installed to different locations on the developer PCs and the build server.

I could really do with a way of detecting where the tf.exe file is located within my script in the same way you can do $(MSBuildExtensionsPath32) etc. Is this possible?

Thanks as always 🙂

  • 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-05-24T13:20:24+00:00Added an answer on May 24, 2026 at 1:20 pm

    Does the environment variable VS100COMNTOOLS point to the correct path for visual studio?
    E.g.
    VS100COMNTOOLS=C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\

    So then all you need is $(VS100COMNTOOLS)..\IDE

    <Target Name="Build">
       <Exec Command="&quot;$(VS100COMNTOOLS)..\IDE\tf.exe&quot;"/>
    </Target>
    

    or however you want to tidy it up.

    The environment variable changes depending on the version of Visual Studio:

    • %VS110COMNTOOLS% – Visual Studio 2012
    • %VS120COMNTOOLS% – Visual Studio 2013
    • %VS140COMNTOOLS% – Visual Studio 2015
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using a msbuild file that builds and packages my solution to
I have a TFS 2008 Build Agent that has been used to build .Net
We have a large C# application which is deployed using an .MSI file which
I have created a msbuild file which will build a solution file(NOTE: not a
I have a current build process which does a .NET build using MSBuild and
I have a csproj file which references a shared MSBuild script with an <Import>
I have an MSBuild task that executes (among other things) a call to xcopy.
I am using Team City as the build server, and I have a msbuild
I have heard that MSBuild 4.0 has increased Regex parsing support. However, I am
I have a custom MSBuild task, which processes a set of files and returns

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.