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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:14:08+00:00 2026-05-25T13:14:08+00:00

I am sure there is a simple answer to this, but my google-fu fails

  • 0

I am sure there is a simple answer to this, but my google-fu fails me.

I have a team project in TFS 2008 that builds OK when using the latest code, however I now have a need to fetch the previous versions of a subset of the files at build time. The subset of files are all labeled with the same label (“MyLabel” in the snippet below).

The snippet of XML I have added to be TFSBuild.proj file looks like this:

  <PropertyGroup>
    <BuildLabel>LMyLabel</BuildLabel>
  </PropertyGroup>

  <Target Name="BeforeCompile">
    <Get
        TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
        BuildUri="$(BuildUri)"
        Condition=" '$(SkipGet)'!='true' "
        Workspace="$(WorkspaceName)"
        Recursive="$(RecursiveGet)"
        Force="$(ForceGet)"
        Version ="$(BuildLabel)" 
        Preview="false"
    />
  </Target>

This successfully fetches the subset of files into the source area, however it also deletes all other files in the source area.

i.e. the build process does the following:

  1. fetch latest versions of all files into the source area
  2. fetch labeled version of subset of files into the source area
  3. delete all non-labeled files from the source area
  4. run build

The build fails with the following error:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(997,5): error MSB3491: Could not write lines to file “[build directory]\Sources\MySolution.sln.x64.Release.vsprops”. Could not find a part of the path ‘[build directory]\Sources\MySolution.x64.Release.vsprops’.

(which basically indicates that it can’t find the solution, because it’s been deleted)

I’ve tried adding the following snippet to the bottom of the XML:

  <PropertyGroup>
    <SkipClean>true</SkipClean>
    <SkipInitializeWorkspace>true</SkipInitializeWorkspace>
    <ForceGet>false</ForceGet>
  </PropertyGroup>
</Project>

but the result is the same.

So, my question is: how do I build my solution when it is a mixture of latest versions and older, labeled versions? What am I missing?

(I realize I could just branch the baseline but for various reasons I would like to explore this approach first)

Thanks in advance!

  • 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-25T13:14:09+00:00Added an answer on May 25, 2026 at 1:14 pm

    Just a simple approach that come to mind:

    1. Get your latest version to workspace1
    2. Get your labeled version to workspace2
    3. XCopy workspace1 content over workspace2 as a post-get action

    What do you think? Worth the try?

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

Sidebar

Related Questions

I'm sure there's a simple answer to this... or not: I have a site
I'm sure there is a simple answer to this but I couldn't find it.
I'm sure there is a really simple answer to this but I can't find
OK, I am sure that there is a simple way to do this but
I'm new to web development, I'm sure there's a simple answer to this, but
I'm sure there is a simple answer to this but I can't seem to
I'm pretty sure there is a simple answer to this that revolves around co-variance
I am sure there is a simple answer to this, but I am drawing
I'm sure there must be a really simple answer to this, but at the
I'm sure there's a simple answer to this, but it's Friday afternoon and I'm

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.