Geeks With Blogs
Tim Huffam Dotting the I and crossing the T of I.T. Dev Env, TFS, MSBuild etc Develop environment, TFS, MSBuild, etc
Programmatically create a branch with the TFS 2010 API
When creating a branch programmatically using the TFS 2010 API, if you do not do things in the correct sequence, TFS does not create the proper object types and/or relationships eg either the folders will not show as branches (showing the branch icon instead of the folder icon) in Source Control Explorer or they will show as branches, but when you do View Hierarchy, it will not show the relationships/structure. After much trial an error I have found the solution... (assuming the source folder already ......

Posted On Thursday, April 19, 2012 10:40 PM

Removing source control from a TFS project
To remove all source control from a TFS project (not a VS project!) - you must use the 'tf destroy' tool. If, like me you try to delete the top-level directory/project node in Source Control Explorer (within VS), then you'll likely get the following error: TF10169: Unsupported pending change attempted on team project folder $/MyProject. Use the Project Creation Wizard in Team Explorer to create a project or the Team Project deletion tool to delete one. So, this (removing source control) is useful ......

Posted On Wednesday, July 6, 2011 10:07 PM

TFS 2008 error: MSB4131: The "Reason" parameter is not supported by the "GetBuildProperties" task.
This error occured on our TFS2008 (RTM) build server after installing VS2010. This is caused because VS2010 updates the MSBuild targets file Microsoft.TeamFoundation.Bu... but not the Microsoft.TeamFoundation.Bu... file (which preforms the tasks mentioned in the targets file). To resolve you need to update TFS (build) server with SP1. See this article. HTH Tim ......

Posted On Thursday, February 3, 2011 5:22 PM

Error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk
This error occurred on our TFS2008 build server which we had upgraded to cater for VS2010 projects (by installing VS2010 on the build server - see this article). Error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\Vis... was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. However - although we had installed VS2010 on the build server - we had not installed ......

Posted On Wednesday, December 8, 2010 1:46 PM

Creating mulitple TFS Build services on the same server - one for VS2008 projects and one for VS2010 projects
This is for TFS2008. This is based mainly on this article: http://blogs.msdn.com/b/jpr... But also had input from these: http://www.woodwardweb.com/... http://blogs.msdn.com/b/buc... http://blogs.msdn.com/b/jim... Also the following article discussing upgrading a ......

Posted On Wednesday, December 1, 2010 8:51 PM

Moving TFS warehouse from SQL Server Analysis Services 2005 to SQL Server 2008
Turns out you can't just move a TFS warehouse/cube from SQL Server 2005 to 2008... Once performed we got the following error on the TFS app server tier - when we tried to update/process the cube (both manually and via the TFS scheduler service): Detailed Message: Failed to load adapter Microsoft.TeamFoundation.Wa... Exception Info: \n Microsoft.TeamFoundation.Se... Error encountered when creating connection to Analysis Services. Contact ......

Posted On Thursday, November 4, 2010 10:42 PM

Upgrade TFS 2008 to be able to build VS2010 solutions/projects - need to delete workspaces
After following steps in this link, I found that my projects would still not build correctly. The error I got in the build was: "The path C:\Documents and Settings\myBuildServiceUser... Settings\Temp\myProject\Bui... is already mapped in workspace myBuildServerMachineName_16." To fix this problem you need to delete all workspaces on the build server (owned by the user account that the build service runs as) - these are named buildservername_nn where buildservername ......

Posted On Sunday, August 22, 2010 5:51 PM

Turning on code coverage/instrumentation in a TFS Build
This requires a testrunconfig file that has been configured correctly. To do this I did the following: In VS2008, right click on Solution Items folder and select Add - New Item... Select Test Run Configuration and enter the name WithCodeCoverage.testruncon... Open/edit this file in VS. Select the 'Code Coverage' item on the left, then selected (checked) the assemblies I wanted to instrument Click Apply to save these changes. Note that you can select which is the active test run configuration from ......

Posted On Tuesday, June 16, 2009 11:32 PM

How to turn on unit testing in your TFS build
The following will make your builds (running on a TFS Server) execute your unit tests after the build: Open your build file (eg TFSBuild.proj). VS2008 has a nice xml editor for this. Search for the RunTest node and change it from: <RunTest>false</Ru... to: <RunTest>true</Run... Look for a section that starts with: <ItemGroup> <!-- TEST ARGUMENTS ... and add nodes within this (after the comments and before the closing of the ItemGroup node) - one entry for each ......

Posted On Tuesday, June 16, 2009 10:54 PM

Script to remove unchanged files in TFS/VS2008
TFS has a wonderful feature whereby it marks files as changed, even though there are no changes. These files show up in the Pending Changes window in Visual Studio (VS 2008). To work around this, add the following external command to your VS tools: First you need to install TFS Power Tools In VS go into Tools - External Tools and click Add Enter the following details: Title: Unchange Command: C:\Program Files\Microsoft Team Foundation Server 2008 Power Tools\tfpt.exe Arguments: uu /recursive /noget ......

Posted On Thursday, January 22, 2009 3:31 PM

How to remove TFS workspaces
This will actually remove the your workspaces - unlike the VS/TFS Source Control Explorer which simply does not display them - duh! From the VS command prompt: tf workspaces /remove:* ......

Posted On Thursday, October 9, 2008 9:10 AM

VS 2008 crashes when running unit tests - VSPERF?
Sometimes Visual Studio 2008 (Team System Developer Edition - with Team Explorer and TFS Power Tools) crashes (disappearing completely) when running unit tests. I have not yet tried SP1 for VS2008 - will hopefully try this in the next week or two. Not really sure what causes this - but have noticed that the following error is written to the windows event log prior to the crash (not at the same time). Event Type: Error Event Source: VSPERF Event Category: None Event ID: 1406 Date: 22/08/2008 Time: ......

Posted On Wednesday, August 27, 2008 9:36 AM

Visual Studio (VS200) loosing it's source control bindings
VSTS2008 has, on occasion, lost it's source control settings - specifically, the bindings to TFS server for a given solution and it's projects. This seems to be because the solution and project files are not being updated when you use the TFS Source Control Explorer to do a 'Get Latest' - a 'feature' of VS2008 which allows you to work disconnected/offline - however it seems to have an issue trying to reconnect itself. To resolve we simply removed the local source directory and did a 'Get Specific ......

Posted On Thursday, June 12, 2008 11:08 AM

MSBuild fails when building solutions with database projects
There is a known problem with MSBuild whereby it does not cater for database project types as these project types (database projects) are not buildable. This is only an issue when specifying a solution file (as the item to build) within the MSBuild script. Because these are not buildable projects VS does not show them in the solution configuration manager. Unfortunately this means they cannot be manually configured not to build (as a work around to this problem). When using solution files within ......

Posted On Tuesday, May 27, 2008 6:20 PM

Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net