|How to delete a user account from TFS so that it will no longer appear in Assigned To or User Management?|
By Default the Assigned To field shows the list of all Valid TFS Users
(this is a specific TFS Group). So if you don't want somebody to show
up in that list you have to make sure they are not in the Valid TFS
Users group. If you inspect this group in the TFS Admin interface you
can see which other groups are members of it. Now it's just a matter
of tracing through the many TFS security groups to
|Can we configure TFS repo in ReviewBoard|
Yes, have a look at this link and it might help;
|How to hide not done PBI from backlog in TFS 2013|
First, if you map Closed to In Progress then it will always be in the
Second, what you are trying to do is really dysfunctional. You should
place the PBI back in Approved and put it back on the backlog.
You can create a query with State=Approved AND State was ever Commited
which will give you a list of overcomitted work.
|How to move TFS 2013 Background Job Agent cache to a different location|
It is not possible to move anything associated with the TfsJob Agent.
However when installing TFS there is the option to install to a
different disk for everything. I would however not recommend this
practice and you should have at least 100gb for a modern servers
|Adding a TFS server group to access levels via command line|
Create 3 TFS server groups; add these groups to the different access
levels (e.g. TFS_ACCESS_LEVEL_(NONE|STANDARD|FULL)). Now use the
TFSSecurity commandline tool to add groups to these existing and
mapped groups(tfssecurity /g+ TFS_ACCESS_LEVEL_NONE
GroupYouWantToHaveThisAccessLevel). There is no other way to directly
add people to the access levels, except probably through the Object
|TFS - Move tasks between Work Items|
I suspect that the easiest way to do it would be from Excel. Create a
Tree-based query that shows everything, then move the child records in
Excel using simple cut and insert cut cells. Excel will then allow you
to publish the new structure in one go.
If you need to move items up to a higher or lower level, place the
Title Field in the column representing the level.
See this little video I captu
|TFS Online Build Fails - NuGet package Restore Not working|
Finally I made it work. It took a while.
At this point, 2 different options available :
Keep the NuGet.targets file and refer that NuGet.targets file from
all the project (Didn’t work for me)
Explicitly call the NuGet.Exe package restore before the build
The option 1 didn’t work for me, that’s why to go ahead with the
I had to do:
Delete the NuGet.targets file from the
|Visual Studio Online, 403 forbidden, you do not have licensing rights to access this feature, Overnight lost majority of rights?|
Got a reply back from Microsoft.
Visual Studio Online Membership Desciptions
Basically, you need at the very least a basic membership to perform
admin functions or an MSDN subscription.
I had always had this subscription so I had never seen this issue
Long story short, if you use this and your subscription runs dry good
luck getting to your code.
(although Microsoft support was very h
|TFS Create Main and Development branch from existing team project|
There's not a great solution to this, but here's one option:
Create a MAIN folder. Copy all your source under this folder.
Convert MAIN to a branch. Branch DEV from MAIN.
Keep your old source code around (the stuff not under the MAIN folder)
for history purposes.
|How to make a direct query to the DB in order to get the list of Iteractions by Team|
Querying the TfS operational store directly is unsupported and can
lead to your system being unsupported. You should use the reporting
TFS creates a data warehouse and cube where all the information is
stored for reporting purpose's. You can just plug Excel into the data
warehouse a query tye data that you need. If you want trend analysis
you can also query the cube.
|Show all tasks assigned to me in a tree that extends to the root|
I attached a version of the query you need to create. The bottom part
is a group of nobody assigned and @me. You can change that part if
you need to.
|how to get current branch from TFS postbuild scripts|
It is not possible to solve this in a general case: it depends how one
organizes his version control (see graphic).
You can apply either one of these techniques:
get the path of post-build script (assuming is part of the branch)
|Team Foundation server 2013 backlog order API|
The rest api's for this are currently not available however you can
update the "Backlog Priority" field from your application of choice. I
have, in the past, used excel to bulk move items around when the
backlog I large. If you have Team Explorer installed you can use the
Team tab on Excel to connect to your backlog query and reorder to your
In 2013.4 Microsoft have updated the ba
|Branching Entire solution vs Branching single project in TFS|
You should branch the entire solution assuming the entire solution is
released at the same time.
However, you only need to branch if you have multiple codebases that
diverge from each other. If every developer is working against the
same codebase then there is no need to branch at all.
|Tracking Blocked and Blocking issues in TFS 2013|
The Affects/Affected By is not a standard link type in the Scrum
Process Template, if you're sharing the Team Project Collection with a
project that has the MSF CMMI template then it will show up.
The relationship is intended to track Change Requests to Requirements,
not to trace Blocked items or dependencies between items.
How you would do this by default in the Scrum template is to use the
|MSpec Test Adapter with TFS|
After lots of research and trial and error, I finally figured how to
make this work. It's actually pretty easy.
Install the MSpec Test Adapter on the build server.
Download the MSpec Test Adapter and change the file type to .zip
Extract the files to a folder on your build server.
Point the "Version control path to custom assemblies" to the files in
step 3 above. *Note: You can access the windo
|How to access TFS 2013's $(Rev:.r) property from within a Build Template?|
You effectively need to parse this off yourself from the BuildName
parameter. If you are using TFS 2013 you can do it in PowerShell.
Prior versions need a customized build template.
There are prebuilt solutions to this. Best is the TfsVersion activity
or the VersionAssemblies.ps1 that is provided as part of the TFS
Community Build Tools.
|TFS Build 2013 can't select mstest|
In the 2013 build template Microsoft has defaulted to the new Agile
Test Runner and no longer supports the selection of the old test
runner for 2013 (12.0) templates.
When you select a 2012 or 2010 build template (10.0 or 11.0), Team
Build will still run using the MsTest runner. If you customize the
2013 template to use the old Run Tests activity it will still run
tests using the MsTest runner. Y
|How do you edit Lab Process Settings in a Lab Management template?|
You are most likely running TFS update 3 which changed the back-end of
TFS to create work items for both the Test Plan and Test Suites now.
There is something odd going on in your project, it may be that you
have not "enabled" the features on the project so those things are
done behind the scene.
To verify this, go the TFS portal and click on the little gear in the
right hand corner, then click
|Team Foundation Server best practice, branch "common" project or grant permission?|
The best practice is to use NuGet. Create NuGet packages for each of
your common libraries and use the package manager to use them. This
way, the "release" of the Common Library would be formalised. If you
are adding features to your common libraries, you can make a conscious
decision to increment release version and the clients can decide
whether they want to upgrade or not.
If you are going dow
|How to disable auto check out when I save or edit file tfs|
In Visual Studio 2013, on the Tools menu, click Options.
In the Options dialog box, click Source Control, and then click
In the Checked In Items section,
And in Editing- there are three options available.
Select Do nothing and click OK
|Aggregating capacity for multiple teams in TFS|
There currently is no solution. Team Capacity is not easily queryable,
the UI has no option to do it and it's not part of the Data Warehouse.
TFS kind of assumes that a team member is part of one team. And one
team only. And have work flow to the team, instead of people swicthing
between teams. I suggest you file a suggestion on Uservoice.
|How to exclude certain branches from git-tfs clone operation|
You won't be able to exclude any branches during the clone operation.
It's an all or nothing operation.
Remember that branches in git (pointers to commits) are different to
branches in TFVC (folders) so if you're not planning on pushing back
changes to the TFVC repository afterwards then you can simply delete
the branches you don't want by using git branch -D operation on each
of the branches you
|My build time exceeds 8 hours - what to do?|
pngcrush without the -brute option runs about 15 times as fast as
"pngcrush -brute" but achieves nearly the same compression. The
-brute option generally only squeezes the images a small fraction of a
percent more, if any.
|Complete nuke all changes in visual studio and reset from TFS|
If you have the Power Tools installed, call tfpt scorch /deletes
/recursive /diff. That should make your local folder match the server
You can also call tfpt treeclean, which will just delete any item that
is not mapped to TFS. It won't update or replace any changed files
though, like scorch will.
|TFSWeb project has no team room|
To get a team room for a project, create a new team room (any name you
like) and then add the project's default team as a room member. Once
you do this, the team room will show up on the team project's home
P.S. To add the default team to the room, use the "Manage users..."
link and then choose to add a VSO/TFS Group. Search for "Team" in the
selection to make finding the team(s) available
|Customize TFS Build to include only specific files|
You want an incremental build, though I don't recall if it was
supported back in TFS 2010.
Try configuring the build to not clean the workspace. Set the "Clean
Workspace" property in the "Basic" section to "None".
Then, it will keep the binaries from the previous build, and, just
like Visual Studio, will only build targets for which the inputs have
|Accessing logs of TFS builds via script or folders|
If you are running a drop folder as part of your build the log files
will be dropped their, the path will always be.
So you can work out where the log file will be created and use the
DropLocation property to identify the path
|TFS2013 Scheduled Builds: Manually triggered Builds are not being accounted for when Scheduled Build are kicked off|
I ran into this issue today as well.
It seems this is currently "by design".
Someone else posted a suggestion to "fix" this here:
|How to check out changes from a code review in TFS|
Yes. There is the option to Unshelve changes and that does exactly
what you want.
|TFS Administrators getting TFS alerts for everything?|
You have an alert configured that has the Team Project removed from
the filter. This results in an alert that exists in a single team
project being applied to everyone.
If your open up the web access and go to the alerts administration
page you should be able to list all of the alerts that are current
configured and find the culprit.
|How to automate the download and installation of Sitecore update packages generated from TFS build?|
In a perfect world you would use something along the lines of a fancy
Microsoft Release Management to deploy it to the environment of
choice. However, if you are like the majority of us mere mortals
without the fancy tools - this should help:
With these pages you could just send a get request from TFS or use the
logic to write a custom Power
|TFS separate branch from parent|
In the source control window select the branch you want to 'orphan'.
Goto File > Source Control > Branching and Merging > Reparent...
Then choose No Parent in the Dialogue and click Reparent
|TFS Build Template 2013 Nuget Restore is done before building all solution|
This is good behavior. I would recommend that you separate the other
solution into a separate build. That discrete build then builds and
published your NuGet package. It makes no sense to combine...
|OpsHub Visual Studio Online Migration Utility not migrating all Work Item to changeset links from TFS2010|
I have discovered that at least for my scenario, Work Item links are
not migrated when the user who created the Work Item in the source TFS
server is mapped to "Anonymous" user in VSO during migration. To work
around this, rather than mapping all extraneous users to "Anonymous" I
mapped them to an actual user.
|Who owns the workspace created by queueing a build in TFS|
The Build Service account owns that workspace. You can use the (free)
tool TFS Sidekicks to find and delete any workspace by any user in a
nice GUI: http://www.attrice.info/cm/tfs/
|TFS Pipline for multi projects|
Each set of code/projects that is released together should live in the
same branch. If you have projects or sets of projects that are
developed and released separately, it makes sense to have separate
sets of branches.
|TFS - How to promote code to prod branch without merging|
The correct way to merge is:-
Set up a shared workspace that contains both branches (if you don't
already have one)
Get the latest Target branch code
Get the latest Source branch code
Merge from your Source to your Target using Latest Version and All
Changes to a Specific Version
Submit your Changes to Source
To overwrite the target if you get conflicts, to ensure that the
target is definately o
|Add members to Team Foundation Server 2012|
You can't add non AD (local) users to TFS from another machine. You
either add an AD and create all the users there or you create for all
the users from other machines a local user on your 'server' again
(which would be separate form their local users on their
workstations). You could then add these users into a workgroup and
assign that workgroup to the TFS projects to simplify things.
But at th