Custom NuGet Source for MSBuild

NuGet-Logo-2If you have a custom data source for your NuGet packages and you use MSBuild for your solutions, MSBuild will not be able to restore these packages.

To achieve this without adding specific configuration files to your .Net solutions, you just need to add a NuGetDefaults.config file in the %ProgramData%\NuGet\NuGetDefaults.config directory of your build server. This file will be opened at each build requiring package restoration and will allow you to see your enterprise or personal NuGet package sources.

[Read More]

Exclude TFS DLLs During Publication

In one of my projects, I use an ASP.Net MVC site to communicate with Team Foundation Server (TFS) to display metrics/graphs/reports. The site is hosted on the same server that hosts TFS and during publication, it publishes the file Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader.dll in the bin folder each time, which causes an ASP.Net error because the dll is already on the server.

It is possible in an ASP.Net MVC project to exclude files and directories by creating a .wpp.targets file. This allows you to define the exclusions as well as the source/reason for the exclusion.

[Read More]
dll  tfs  publication  MVC  XML  WPP 

State Change Date in TFS Scrum

While trying to take advantage of the new trend charts in TFS 2013.4, I realized that the state change date was not added to the item template in the TFS Scrum template. I had to resort to using the modification date, but this skews the results for items that haven’t actually changed in a long time but have had a property change (notably the priority when reordering the backlog).

I found this article which explained the changes to be made, but my version of TFS is in French, so here is the French version to add to tasks, bugs, and backlog items in the <FIELDS></FIELDS> section:

[Read More]