|TFS Build Failing on System.Windows|
It seems like you're referencing the Silverlight
version of System.Windows instead of the .NET
Framework version. Have you tried installing
Silverlight on the build server or changing the
reference of your project to point to the normal
.NET Framework version of that assembly (which
.NET Framework exists on your build server)?
|How to add a work item tag within Visual Studio 2013 IDE?|
Adding and editing tags in Visual Studio 2013 has
been enabled in Update 2. I'm currently running
Visual Studio 2013 Update 4 and the functionality
is available there.
Make sure you download and install the latest
version of Visual Studio 2013 to get access to the
|How do I get a TFS build to precompile a web application using a saved publish profile?|
I believe that there is a bug in the Release
templates that affects how web sites are
pre-compiled. Look to use the Default Template and
instead add the RM bits manually.
First switch to the default template and verify
that it does as you want. The
|Cleaning up old build agents after TFS Upgrade|
When I was young I took everything apart to see
how it worked, and somehow there was always a
screw or a spring left over after I had
reassembled it. I learnt a lot, but I also ended
up with lots of things that didn't work properly.
My advice: If it ain't broke, don't fix it.
Especially if "it" is TFS.
Or to put it another way, what is the benefit to
making any changes?
(If you do feel tempted
|How to find changesets between two TFS labels (for Release Notes / Change log)|
I was using tf hist incorrectly.
The key is the ordering of the labels in /version.
The following works fine, assuming that LabelA
was applied before LabelB.
D:workspace>tf hist . /recursive
Unfortunately the command I was running was:
D:workspace>tf hist . /recursive
|From TFS + TeamBuild to Jenkins + Perforce|
Jenkins does not use any msbuild files per
default. It might bpossible be possible using
plugins though. Or simply calling msbuild which
will have the same effect. If you know how to
build from a commandline, its trivial doing it
from Jenkins. Simply create a freestyle project
and add a windows 32 shell command.
|Can you merge two branches in Visual Studio Online?|
Not entirely sure this is something support-able
by the TFS product, actually. Merges tend to need
at least a minimal amount of human interaction
whenever there is conflicts (and even in the
cleanest merge relationships conflicts can and do
However, you can do this on the build machines if
you wish by performing the merge just before the
build occurs and if the build succeeds, checking
|Auto integration in TFS branching|
I don't believe a feature such as this exists in
TFS at the moment (2013). However, there are some
ALM tools that can help you propagate changes to
associated branches, the 'Tfs Community Branch
There are powershell modules that come with Team
Foundation Power Tools you can likely cobble
something together with as well, if the ALM tool
doesn't work out for you. If you happen to b
|TFS 2013.4 Reporting a TF400917 error|
First you should put your process template under
source control. I usually do this by downloading
the full process template and sticking it in a Git
repo. However make sure you only go one way, from
Source to TFS as extra fields are in the "witadmin
Second, you have to have each of the states in
your work item added to the Process Configuration.
If you add a state to a work item that
|Connect to TFS using windows credentials|
You will need to crate the correct SPN's to allow
your site to get a Kerberos token to be able to
pass the credentials from the Users Workstation
through your website to the TFS Server. This is
commonly called a "double hop issue" and is easily
implemented with Active Directory.
|How can I create a direct link to a bug in TFS web portal without knowing the project name?|
TFS 2013 supports this through the following
But it seems that this was not yet enabled in Team
Foundation Server 2012.
|Assign Backlog item to Feature|
Your first screenshot is in the Queries tab,
looking at the Results of the Assigned To Me
Query. The 2nd screenshot is in the Backlogs tab.
PS - TFS Express may not contain the Portfolio
Management features that you're trying to get to.
I've never used TFS Express so not entirely sure
which features are in there or not.
|How to run MTM tests on multiple product builds?|
Pls take a look at the below link, if it can be
used to suit your needs.
one question: Are you using Build-Deploy-Test flow
to install the product on the environment or doing
it any other way?
|TFS Builds - How to customise script to identify when not to build assemblies?|
First, enable diagnostic logging into a file and
rebuild. Examine that log and identify the target
that is rebuilding and look for the output saying
"rebuilding project due to cause".
How are you kicking off the build? Do you have
any targets that touch files during the build
process? Are these rebuilding because an
aggressive target is minifying .js output, and the
updated timestamp on the .j
|Branching gives wrong project folder|
Please can you edit the project file (open it in
notepad) and see the value of elements
SccProjectName, SccLocalPath, SccAuxPath and
Should be set to SAK for all of them as below
Your solution file al
|TFS 2013, unable to perform build with shelveset|
Basically, you can't do what you're trying to do.
You can't shelve changes to the build template and
queue a build to it. When it attempts to unshelve
the new template it is already reading the
template that exists in the local machine. It then
attempts to override the one it is currently using
with your shelveset version, resulting in the
|How can I customize the New Backlog Items menu to include 'Areas'?|
You need to use the witadmin command-line tool,
and do an exportprocessconfig, then modify the xml
and do an importprocessconfig.
Docs on the witadmin tool are here:
In the ProcessConfig.xml you can modify which
fields are shown:
|How can I run my testing application immediately after a build in TFS?|
If you're using the 2013 Build Template
(TfvcTemplate.12.xaml) then there is a spot to
specify a Post-Test PowerShell script to run.
Then you just write a powershell script that runs
your custom testing app and call it from the
|Migrate specific project from TFS 2012 to 2013|
The best way to do it would be to split up the
team project in team project collection and then
upgrading only the new team project collection.
See below for splitting up team project from
Also, the Tfs To Tfs migration guide will be
|C#/.Net code analysis report by TFS reports or Cruise Control.NET|
You can create an automated build in TF Build to
compile your code on a regular interval.
You can then customise the build process to run
any kind of code analaysis that you like. There is
Static Code Analyis out of the box but many people
integrate with something like sonar.
|How to batch update releases in TFS Release Management|
Unfortunately, this is not possible using the
Using releases for Agent-based deployment, the
only option you have is through the db.
For vNext releases, there might be a way with REST
calls, but not sure about that one. I will try to
look it up.