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 6354587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:35:56+00:00 2026-05-24T22:35:56+00:00

The problem I am porting a build to a newer version of CC.Net (from

  • 0

The problem

I am porting a build to a newer version of CC.Net (from 1.4.4 to a very recent version of 1.6). Previously the build mixed <msbuild /> tags with <exec /> tags that call batch files with tf.exe commands in them.

The build must have relied on the source control version being the same between the msbuild and tf.exe commands, because now I get an error on the tf.exe command:

Unable to determine the workspace.

When I launch a command prompt, with runas as the same user the service is using, and call the same command the batch file used (from the same directory), I get the same error.

However if I launch a Visual Studio 2010 command prompt, with runas, and call that command (from the same directory), I don’t get the error.

This also makes sense, because the %UserProfile%\Local Settings\Application Data\Microsoft\Team Foundation\3.0\Cache\VersionControl.config file has the workspace mapping, but the ...\1.0\Cache\VersionControl.config file does not.

The solution I’d like to try

I can’t simply change the PATH for the batch file because it actually needs to build against an older version of Visual Studio, due to licensing.

I think I could solve this by specifying the TFS/msbuild version used with the <msbuild /> tag. But I’m not sure how to go about this. I think it would be some sort of server configuration, but I haven’t found anything about this in the docs.

My question is: How do I specify the version of TFS that Cruise Control uses for <msbuild /> tags? Or is there another way to solve this?

  • 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-24T22:35:57+00:00Added an answer on May 24, 2026 at 10:35 pm

    As far as I know, there is no way to specify this directly with msbuild. The way it is solved at our place is that we set the executable for msbuild to a bat-file that’s basically a copy of the desired vcvars-script (used by Visual Studio Command Prompt to set up the environment).

    <tasks>
          <msbuild>
            <executable>vcvars_VC10_amd64.bat</executable>
            <workingDirectory>SomeFolder</workingDirectory>
            <environment>
                <variable name="foo" value="bar" />
            </environment>
            <projectFile>msbuild.proj</projectFile>
            <buildArgs>/m:2  /p:Configuration=Release /p:Platform=x64 /v:normal</buildArgs>
            <targets>Clean;Build;Test</targets>
            <timeout>3600</timeout>
          </msbuild>
      </tasks>
    

    Maybe you could get away with setting up your desired paths using the <environment> property as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am porting some Core Data code from iPhone to Mac OS X. Problem
I'm porting an existing system from Windows to Linux. The build is structured with
We are porting our app to Delphi XE2 from Delphi 6. Problem is, the
I've a C++ project that I'm currently porting from VS2008 to VS2010. When I
Problem: I have a project which I'm porting from Solaris/Lex/Yacc to Linux/Flex/Bison + Autotools.
I'm porting some open source code so that it can build on another c++
I'm porting an OpenCV 2.2 app from Unix (that works) onto Windows 7 64-bit
Currently porting an application to Windows Phone 7 I've encountered a problem that should
I am porting a Delphi application to C# and I've run into a problem.
I'm running into a thorny problem with posting an event from an event tap.

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.