Ozzie.eu

Love to code, although it bugs me.

Showing posts with label visual studio. Show all posts
Showing posts with label visual studio. Show all posts

TFS: pending checkin from missing computer

On a daily basis, developers use versioning control software like Microsoft's Team Foundation Server. A problem that arises from time to time is a pending checkin from a user that has left the company, or worse yet, a computer that is missing either because it was damaged or taken away.
On TFS, to solve these issues, you can use the TF.EXE command line tool. To use it you should open a command prompt window:

After opening the command prompt, you need to have identified the following information:

  • Name of the computer where the workspace used to be hosted;
  • Windows username used to logon to Team Foundation Server;
  • The TFS Web URL
The TFS URL should be something like: http://yourhost:8080/tfs/web/
In the example I called the server "yourhost" and assumed it to be listening on port 8080.

With these key pieces of information, you should be able to run the command:

tf workspace /delete {computername};{username} /server:{TFS URL}

You should replace the contents in braces with your own. Executing the statement should get a warning like the following:

A deleted workspace cannot be recovered.
Workspace 'computername;username' on server 'TFS URL' has X pending change(s).
Are you sure you want to delete the workspace? (Yes/No) 

If you answer "Yes" the workspace will be erased, along with all pending locks. The checked in changesets, done before this workspace deletion will not be affected.

HTH.

Visual Studio 2012 Product Guide

Together with the launch of Visual Studio 2012, Microsoft has released a product guide to learn how to take advantage of their latest IDE release, as well as the technologies supported.
This Visual Studio 2012 Product Guide provides a comprehensive overview of scenarios and features regarding:
  • The new integrated development environment (IDE)
  • Windows® 8 development
  • Web development
  • Cloud development
  • SharePoint development
  • Application Life Cycle Management tools
You can download the guide from Microsoft Download Center.

    Visual Studio 2012 and .NET 4.5 have arrived

    Visual StudioIt's exciting news for Microsoft technology developers, as the final builds of the newest version of the .NET framework as well as one of the best development tools, Visual Studio, have become available. You can get a full briefing from this post here.
    Furthermore, Microsoft has kindly made available a free ebook from Apress media on Visual Studio technologies. It has the following table of contents:
    • Chapter 1: Introducing Visual Studio 
    • Chapter 2: Getting Started with Metro
    • Chapter 3: Testing in Visual Studio
    • Chapter 4: Introduction to ALM
    • Chapter 5: ALM Assessments
    • Chapter 6: ALM Using TFS
    • Chapter 7: Windows Azure Platform Overview
    • Chapter 8: Windows Azure Compute

    You can download it here.

    Using Visual Studio 2008 with Team Foundation Server 2010

    Given the lack of a straightforward answer on the Web, here is mine. To get Visual Studio 2008 to connect to Team Foundation Server 2010 and integrate with the source control follow these steps:

    1. Download and install Visual Studio Team System 2008 Team Explorer
    2. Download and install  Microsoft Visual Studio 2008 Service Pack 1 
    3. Download and install  Visual Studio Team System 2008 Service Pack 1 Forward Compatibility Update for Team Foundation Server 2010 
    Having successfully executed all previous installations, open Visual Studio 2008, go to menu "Tools > Connect to Team Foundation Server":

    Add your TFS server's address in the form "http://[IP address or FQDN]:[port]/tfs".
    It should be all set up!