Deleting Projects from TFS

8 06 2009

MSDN article about TFSDeleteProject. Has usage and troubleshooting.

Just wanted to create a quick reference for myself for future use.

http://msdn.microsoft.com/en-us/library/dd206696.aspx

Use:
TFSDeleteproject [/q] [/force] [/server:servername] team project name

Argument Description
Team project name The name of the project. Use quotation marks if there are spaces in the name.
servername The server name. Use quotation marks if there are spaces in the name.
 
Option Description
/q Use the quiet mode. Do not prompt the user for confirmation.
/server:servername The name of the application-tier Team Foundation Server where the team project is located. This is required in multi-server environments.
/force The program should continue even if some parts cannot be deleted.

*NOTE: TFSDeleteProject.exe is located in {Drive}\Program Files\Microsoft Visual Studio 9.0\Common7\IDE





TFS Power Tools Collaboration Error

5 06 2009

A few days after installing the TFS Power Tools, I started getting error messages whenever I opened up the Team Explorer pane in Visual Studio. The exact error was:

Creating an instance of the COM component with CLSID {B69003B3-C55E-4B48-836C-BC5946FC3B28} from the IClassFactory failed due to the following error: 8007000e.

The problem was related to the collaboration piece of the tool. My installation had Widows Live Messenger as the selected provider. I don’t know if this is the default selection or if somehow the installation detected what was running. Either way, the fix to stopping the error messages was to disable the collaboration piece.

  1. Right click on the Team Members node of the project.
  2. Select Personal Settings… from the context menu.
  3. In the Collaboration grouping, click on the Change button.
  4. In the window to choose a collaboration provider, select <None>
  5. Click OK twice.

As a side note, other than the message box showing the error, I didn’t really encounter any problems with the operation of TFS. The other option available, aside from Messenger, was to use Communicator as the collaboration medium.





TF30177: Team Project Creation Failed

3 06 2009

I encountered the error below when trying to create a new project under TFS. TFS was a brand new install and I was making sure the installation didn’t have any problems.

TF30177: Team Project Creation Failed

Error
TF30004: The New Team Project Wizard encountered an unexpected error while initializing the Microsoft.ProjectCreationWizard.Reporting plug-in.

Explanation
TF30171: The Microsoft.ProjectCreationWizard.Reporting plug-in used to create the new team project could not be initialized and returned the following error: TF30224: Failed to retrieve projects from the report server. Please check that the SQL Server Reporting Services Web and Windows services are running and you have sufficient privileges for creating a project..

User Action
Contact your Team Foundation Server administrator.

After experimenting with permissions for the TFS service and TFS reporting accounts for the local machine, reporting services and WSS, to no avail, I finally came accross Jason Barile’s blog about installing VS 2008 SP1 AFTER installing Team Explorer.





Blog post by email

27 05 2009

I just found the option to post blogs via email; and, this is my “Hello World” email blog post :D





Visual Studio (2005, 2008) Keyboard Shortucts

27 05 2009

Thought I’d put up my personal reference for Visual Studio’s keyboard shortcuts and update on a periodic basis. Not sure how to organize this so expect this to change/evolve. For now it is somewhat based on the ones I use most often, since those will be the easiest to remember :P .

Insert empty line above cursor
Ctrl + Enter

Insert empty line below cursor
Ctrl + Shift + Enter

Comment/Uncomment
Ctrl + K, C / Ctrl + K, U
Highlight the lines you want to comment/uncomment

Delete an entire line
Ctrl + L

Toggle Set/Unset Bookmarks
Ctrl + K, K

Go to Next Bookmark
Ctrl + K, N

Format the entire document
Ctrl + K, D

Format the entrie selection
Ctrl + K, F
Highlight/select entire text to be formatted.

Update reference (add a using statment for C#)
Ctrl + .
Have the cursor on the text that is missing the reference.

Quick watch (Debugging)
Ctrl + Alt + Q
Highlight the code you want to watch and hit the sequence to add it to the quick watch dialog.

Collapse document block
Ctrl + M, O
I can’t seem to recall how to uncollapse the entire document.

Toggle collapse/uncollapse current block
Ctrl + M, M