.Net and VisualStudio ALM
Uncategorized
TFS 2010: Rename a server – Part 6: the TeamFoundation Server server
Aug 13th
Posts in this series:
- Part 1 : introduction
- Part 2 : the database server
- Part 3 : the Analysis Services server
- Part 4 : the Reporting Services server
- Part 5 : the Sharepoint server
- Part 6 : the TeamFoundation Server server
- Part 7 : the TeamBuild server
In this fifth post we will see what to do to rename the TeamFoundation Server server tfs.demo.local to tfs1.demo.local and make our service work again
TeamFoundation Server
First you need to rename the server
We can then reconfigure the Application Tier using the administration console:
- Start the admin console.
- Select the Application Tier node and click the Change URLs link:

- In the dialog window, update the Notification URL field with the new TFS server address:

- Click the OK button.
If you prefer to use command line tools, you can use the TfsConfig:
- Open a command prompt.
- Run the following command to update the notification url in TFS:
"%programfiles%\Microsoft Team Foundation Server 2010\Tools\tfsconfig" settings /notificationurl:http://tfs1:8080/tfs
That’s it for the Application Tier part. We must now reconnect the TFS Sharepoint extensions.
Sharepoint
On the Sharepoint server we will reconfigure the TFS extensions for Sharepoint by using the TFS administration console:
- Start the admin console.
- Select the Extensions for Sharepoint Products node and click the Modify access link:

- In the dialog window, update the URL for Team Foundation Server field with the new address:

- Click OK.
That’s all for Sharepoint but now you must update it’s content.
Office Documents
If you have Excel or Project files in your Sharepoint document library that use the Team Explorer add-in to connect to TFS, you will need to update those files. Here is what to do for all your Team Projects using the Agile process template:
- Open the Product Planning document for editing:

- In the Team tab, click on Configure and select Server Connection :

- In the dialog window, click on Servers to add the server using it’s new URL.
- When the connection is create, select the server and the correct Team Project :

- Click on Connect.
- Redo steps 2 to 4 for every document. (yes this can be long…
)
Your documents are now reconnected. Note that you must also update the Visual Studio connection but i think everyone knows how to do this
TeamBuild
The last component to update is the build service. For this we must use the TFS admin console:
- On the build server, start the admin console.
- Select the Build Configuration node and click the Properties link:

- In the dialog window, if the service is started you must first stop it using the stop to make changes link:

- You can now update the Connect to Team Project Collection (outgoing) field with the new url:

- Click Start to restart the build service.
- Open the registry editor (regedit).
- Go to HKLM\SOFTWARE\Microsoft\VisualStudio\10.0\TeamFoundation\Build\ServiceHost.
- Update the ApplicationServerUrl value with the new URL.
- Restart the build service.
Your installion is back online using the new TFS server name. LNext time will rename the TeamBuild server.
Carpe Diem.
WiqAdmin: Release 1.1.1.0
Aug 7th
WiqAdmin is a command line utility to administer work item queries for TFS 2008 and TFS 2010. I just released a new version with the following new features:
- Added “copy” command for TFS 2010 to copy queries from one team project to another.
- Updated “export” command to support exporting multiple queries using an input file containing the queries to export.
- Updated “delete” command to support deleting multiple queries using an input file containing the queries to delete.
You can download the 1.1.1.0 release for TFS 2008 and TFS 2010 here : http://wiqadmin.codeplex.com/releases/view/90663
I’d also like to thank jzserai for joining the project and helping with this release.
Next release will support TFS 2012.
Carpe Diem.
TFS 2010: A standalone installer for the TFS 2010 SP1 client Object Model API
Jul 16th
A small post to inform you that Microsoft released a standalone installer for the Team Foundation Server 2010 SP1 client Object Model API! You can found it on the Visual Studio Gallery here:
http://visualstudiogallery.msdn.microsoft.com/a37e19fb-3052-4fc9-bef7-4a4682069a75
Before this installer, if you wanted to develop an application that interacts with TFS you needed to install Team Explorer to have those few needed DLLs… this isn’t the cas anymore
Of course licencing doesn’t change and your user will still need a TFS CAL.
A TFS 2012 version will be available with the RTM.
Carpe Diem.
TFS 2012: Add a custom section in a build summary
Jul 9th
With the previous versions of TFS you could customized the buil summary from TeamBuild by developing Visual Studio add-in and deploy is on every computer. This was not simple and it was simplified in Visual Studio 2012 / Team Foundation Server 2012
Everything is done with the new standard TeamBuild activity WriteCustomSummaryInformation:
- Open your build workflow.
- Add the WriteCustomSummaryInformation activity where you want.
- Sets the activity parameters.
The available parameters are the following :
- SectionKey : the section unique key,
- SectionDisplayName : the section name to display on the summary,
- SectionPriority : the section priority which defines it’s placement relative to other sections,
- Message : the message to display.
And here is the custom section you get:

If you want to display multiple lines from different locations in your workflow, you can add as many activity as need just remember to specify the same SectionKey. For the SectionDisplayName and SectionPriority parameters it’s the first encountered value that is used.
Messages must be text only but can contains links. To add links in your messages, use the following syntax : (link). If the link starts with “vsts:”, it will be considered as a link pointing to a TFS artefact and will be handle by Visual Studio; for other link types, the operating system is called
The priority must be an integer greater or equals to 0, 0 is the highest priority which will place the section at the top of the summary. The first standard section starts at 100. You can hover with the mouse on a section name to display its key and priority (as shown in the previous screenshot
). By using these, you can add your own messages to the standard sections. you can even reorder them and change their name by specifying new values to the SectionDisplayName and SectionPriority parameters
As explained, messages can only be text based, this is a limitation of the new activity and model. If you need to add a custom section with more rich content (text, images, graphics…) you will have to use the same method as in the previous version and develop a Visual Studio add-in.
Even if it doesn’t cover every need, this standard activity is a good start
Carpe Diem.
VS 2012 / TFS 2012 : The Release Candidate is available
Jun 1st
Since last night Microsoft has release the Release Candidate of it’s new Visual Studio products. Microsoft has also given the product final name, we will now talk about Visual Studio 2012 and Team Foundation Server 2012 (Who would have though
).
If you’re an MSDN subscriber you can connect to your account and download the ISOs:
- In english: http://msdn.microsoft.com/subscriptions/downloads/hh442898#searchTerm=&ProductFamilyId=464&Languages=en&PageSize=10&PageIndex=0&FileId=0
- In french: http://msdn.microsoft.com/subscriptions/downloads/default.aspx#searchTerm=&ProductFamilyId=464&Languages=fr&PageSize=10&PageIndex=0&FileId=0
If not, you can go to the Visual Studio website and download the web installer:
- In english: http://www.microsoft.com/visualstudio/11/en-us/downloads
- In french: http://www.microsoft.com/visualstudio/11/fr-fr/downloads
I’ll come back in a later post on what was added since beta. The most visible even without installing it is the new logo
You will be happy to know that Microsoft has listen to the user feedback and reintroduced some color in the UI
Carpe Diem.
Wygday 2012 : Speaker sur Visual Studio 11 et Team Foundation Server 11
May 11th
Translate original post with Google Translate
Le Wygday 2012 aura lieu le 7 juin à Lille. Venez écouter les experts de Wygwam vous parlez de leur retour d’expérience sur les technologies Microsoft ! Vous pourrez me retrouver lors de ma session sur les nouveautés de Visual Studio 11 et Team Foundation Server 11.
Carep Diem.
TFS: Doing rollbacks with TFS 2010 and TFS 11
Apr 5th
I got several time questions about how rollback are done with Visual Studio 2010 and Team Foundation Server 2010; instead of repeating myself i’ve decided to write a post
Note : although the screenshots are done under Visual Studio 11, the principals are the same with Visual Studio 2010..
In TFS when doing a rollback or cancel a changeset you will get a new version of your file or files with an Edit status:

The edit will then be visible in the history after doing a checkin. (you will the be able to rollback your rollback
)
Since TFS 2010 it is possible to rollback without using the PowerTools by using the command line tf.exe rollback. The documentation is available on MSDN at http://msdn.microsoft.com/fr-fr/library/dd380776(VS.100).aspx. Unfortunatly this method is not really user friendly
Fortunately Microsoft has added a user interface and a context menu entry in Visual Studio with the TFS PowerTools August 2011 which are in standard in VS 11. In the source explorer when doing a right click on an item you will see the Rollback command:

If you clic on it a dialog will open letting you specify the rollback settings:

This dialog lets you specify on which item to do the rollback and the type of operation. To illustrate those 3 type of operations we will use the following code:
Changeset 21
public class RollbackDemo
{
public int GetValue(int i)
{
return i;
}
public DateTime GetDate()
{
return DateTime.Now;
}
}
Changeset 22
public class RollbackDemo
{
public int GetValue(int i)
{
return i + 1;
}
public DateTime GetDate()
{
return DateTime.Now;
}
}
Changeset 23
public class RollbackDemo
{
public int GetValue(int i)
{
return i + 1;
}
public DateTime GetDate()
{
return DateTime.Today;
}
}
The Rollback changes from a single changeset option let you cancel the modification added by a specific changeset while leaving all edits that happen after. To do this Visual Studio uses a the same logic as a merge by using the following file versions:
- Before the selected changeset,
- The selected changeset,
- The lastest version.
In our example if we decide to rollback the changeset 22 we will get automatically the following result:
public class RollbackDemo
{
public int GetValue(int i)
{
return i;
}
public DateTime GetDate()
{
return DateTime.Now;
}
}
The GetValue method is back to it’s original definition (changeset 21) while the method GetDate is unchanged!
Of course if a conflict exists VS will ask the user to manually resolve it like for a merge:

The Rollback changes from a range of changesets option is the same as the previous one but applied to a set of consecutive. When using this option you have a high risk of having conflicts (mostly if the set is important) which may not be simple to resolve.
The last option Rollback to a specific version is simply a cancel operation which will undo all edit after the specified version. The version can be specified using one of the following option:
- Changeset number,
- Date,
- Label,
- Workspace version
If we decide to revert to the changeset 21 we will get the following code:
public class RollbackDemo
{
public int GetValue(int i)
{
return i + 1;
}
public DateTime GetDate()
{
return DateTime.Now;
}
}
The GetValue and GetDate methods are back to the exact definition in changeset 21.
Whichever rollback type you choose the edit is only done on the selected items so watch out for dependencies (for example your rollback removes a method which is used inside a non rollbacked file) !
I hope you know have a better understanding of how rollbacks work. Note that all the above operations can be done using the command line
Carpe Diem.
TechDays 2012 : Vidéo de ma session sur Lab Management 2010
Mar 9th
Translate original post with Google Translate
La vidéo de ma session aux TechDays 2012 est disponible :
Vidéo “Gérez votre laboratoire de tests avec Visual Studio Lab Management 2010″
Et voici les slides :
Slides “Gérez votre laboratoire de tests avec Visual Studio Lab Management 2010″
Bon visionnage
Carpe Diem.
VS 11 & TFS 11: A beta version on February 29th 2012
Feb 24th
Good news, the next version of Visual Studio and Team Foundation Server are coming in Beta with a Go Live licence on February 29th (the same date that the Windows 8 consumer preview
).
Here is a list of the products which where announced for Visual Studio 11:
- Visual Studio 11 Professional
- Visual Studio 11 Premium
- Visual Studio 11 Ultimate
- Visual Studio 11 Test Professional
- Visual Studio 11 Team Foundation Server
- Visual Studio 11 Team Foundation Server Express
- Visual Studio 11 Team Foundation Service
Compared to the 2010 line we have two new additions. The first, Team Foundation Server Express is a free edition of TFS with the following limitations:
- 5 users max,
- can only be installed on SQLServer Express,
- only “single server” install mode,
- no Sharepoint integration,
- no Reporting Services integration,
- the web interface only proposes the Agile taskboard (no backlog management or feedback feature),
- no TFS proxy.
Note that this version will be compatible with Visual Studio Express, Microsoft is now proposing a comprehensive development tools package for “unprofessional” developers! Of course it will be possible to upgrade an Express platform to add users through the purchase of CAL (Client Access License) or add the missing functionality by switching to the full version of TFS 11 :)
The second addition is Team Foundation Service. It is a TFS version which runs on Azure and is actually in test phase at http://www.tfspreview.com. This version on Azure has, for now, all TFS features except Sharepoint, Reporting Services and build (the build can be installed on-premises and connected to TFS on Azure).
Il come back in futur post in details on new features of Visual Studio 11 and Team Foundation Server 11. While waiting here are a list of links on this beta version:
- Introduction to Visual Studio 11 Beta (Visual Studio blog)
- Visual Studio 11 product line (Visual Studio site)
Carpe Diem.
TechDays 2012 : Speaker sur Lab Management 2010 aux TechDays 2012
Jan 5th
Translate original post with Google Translate
Les TechDays 2012 auront lieu du 7 au 9 février 2012 au Palais des Congrès de Paris. Il y aura beaucoup de session sur toutes les technologies Microsoft actuel et à venir en 2012 ! Venez nombreux
Vous pourrez me retrouver sur le stand de Wygwam (ma société) ou lors de ma session sur Lab Management 2010 (et les nouveautés de Lab Management 11) :
Carpe Diem

