Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working with a web application, using TFS. Every time I build the site it takes an unproductivly long time to start up again. I would like to have a second mapping of the site on my c drive, where I would only get latest and build once a day, so this version would always be fast. This would be like a "readonly" directory as I wouldn't personally make any edits to it.

Please let me know if this possible, or if you have any alternative.

share|improve this question

closed as off-topic by GlenH7, MichaelT, gnat, Bart van Ingen Schenau, psr Jan 21 '14 at 20:06

  • This question does not appear to be about software development within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

There are third-party build tools that you can call from TFS builds that can pre-compile your ASP files on IIS so that you don't have to wait forever and a day after hitting the site for the first time after every release. – maple_shaft Mar 9 '12 at 12:23
This question appears to be off-topic because it is about an implementation issue and belongs on SO but is too old to migrate. – GlenH7 Jan 21 '14 at 0:48
up vote 15 down vote accepted

One workspace does not allow the same TFS folder to be mapped to more than one local directory.

However you can have two or more workspaces for one computer, and each workspace can map a TFS folder to a different local folder. What revisions of files are in each workspace is tracked separately (to keep each up to date you need to do a get in each: easy with 'tf get' from the command line).

share|improve this answer
Amazing, thanks. – Ignacio Soler Garcia Apr 25 '13 at 10:13

TFS has a build agent built in, you can create a build to run daily or nearly any other way you can think of, though you would have to set up something to be a build server i believe.

share|improve this answer

It is possible to do this.

  1. Unmap Your TFS
  2. Right click on the folder and Map the sub directory to a folder for example C:\temp
  3. Click on the root and map it to another folder C:\localDev\
  4. you will be asked to remove the existing mapping on C:\temp
    • Select No (do not press Cancel)

I have tried this and it works fine.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.