1 0 Tag Archives: Visual Studio
post icon

DevOps and Application Lifecycle Management

Microsoft extended Visual Studio Online and Team Foundation Server 2015 (Update 2) on premises with Release Management tools.

You can implement DevOps solution for delivering your software easily and more frequently.

It enables you to:

  • Automate your deployments
  • Automate approval workflows
  • Retain full traceability
  • Apply security policies and manage users
  • Easily deploy to on-premises and Azure
  • Extend Release Management with customizations

https://youtu.be/7-Eazr2K9K4
(double click to enlarge)

post icon

TFS find in files version history with Visual Studio 2010 and 2012

Recently I needed to find in all files version history of a TFS 2010 project with Visual Studio 2010.

Searching on Google I found Visual Studio 2010 and 2012 extensions, developed by Mattias Sköld, that allow you to achieve the goal.

Let’s see how to find inside all version of files with Visual Studio 2010 on TFS 2010.

Once installed the TFS Administrators Toolkit for VS 2010 extension we will get the feature by right-clicking on the TFS root Collection from Team Explorer window, as illustrated in Figure 1.

Figure 1

Figure 1

We you ckick Find in Files the followinf popup will open:

Figure 2

Figure 2

As you can see in the Figure 2, the feature allow you to:

1) Select Team Project
2) Filter by extension file type
3) Search or not in the file history
4) Specify search terms (keywords) with case sensitive and regular expressions options

post icon

Error TF203015: The item $/mypath/myfile has an incompatible pending change.

When you work with Team Foundation Server 2010 and Visual Studio 2008 you cannot merge file changes when you try to unshelve a shelveset. In fact if you try to unshelve  a shelveset which contains file already chenged on the local workspace, you will have the following error:

TF203015: The item $/mypath/myfile.cs has an incompatible pending change

because the file myfile.cs is checked out on the local workspace and the unshelve operation fails because the merge operation doesn’t occur during unshelve operation.

To support this requirement Microsoft has released the Team Foundation Power Tools 2010 (TFPT) that allow you to perform the merge during unshelve.

Below is the step by step procedure.

Assume that the working folder is C:\WORK\MyProject, which is the local folder mapped to the TFS project MyProject.

  1. Open the Visual Studio 2008 Command Prompt
  2. Go to workdir with the command cd C:\WORK\MyProject
  3. Insert the command tfpt unshelve and press Enter(if the credentials prompt appears, insert the right credentials)
  4. Then the popup “Find Shelveset” will appearChoose the desired shelveset and click Unshelve button
  5. “Unshelve/Merge Shelveset” window will appar and will show to you the list of confilct files.
  6. Click the Auto-merge All button.
That’s all!
You have on local workspace the local changes merged with shelveset changes.
This behavior is due to the fact that the merge tool between the shelveset it was not integrated into Visual Studio 2008, so it can only be done with the Team Foundation Power Tool.
post icon

How to fix Visual Studio Database Project Schema Compare duplicate menu items

Visual Studio Database Edition 2008 e Visual Studio Team System 2008 presentano un piccolo bug nella visualizzazione dei menu, in particolare per la voce di menu “Data”.
Infatti le voci di menu “Schema Compare“, “Data Compare“, “Refactor“, ecc. risultano duplicate, se non addirittura triplicate (vedi figura):

Visual Studio DB Project Duplicate menu items

Visual Studio DB Project Duplicate menu items

Questa situazione si può verificare quando ci sono più account sulla stessa macchina che utilizzano Visual Studio, poichè il menu viene mememorizzato in un file di cache a livello utente.
Questo file (nascosto) è reperibile al seguente percorso: %AppData%\Roaming\Microsoft\VisualStudio\9.0\1033\devenv.ctm

Per risolvere il problema dei menu duplicati eseguire i seguenti passaggi:

  1. Assicurarsi che sia Visual Studio (devenv.exe) sia chiuso.
  2. Aprire il prompt dei comandi (Windows Vista o superiore, incluso Windows Server 2008 o superiore) con privilegi di Amministratore
  3. Eseguire i seguenti comandi:

    “%ProgramFiles%\Microsoft Visual Studio 9.0\DBPro\DBProRepair.exe” RemoveDBPro2008

    “%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe” /ResetUserData

    Nota: Su ambienti a 64bit utilizzare la variabile d’ambiente %ProgramFiles(86)% al posto di %ProgramFiles%

  4. Riavviare Visual Studio

Questa procedura mi ha risolto anche un altro problema in fase di Schema Compare. In pratica non mi risultava possibile effettuare uno Schema Compare tra un Database Project poichè risultavano disabilitate le voci “Project” sia del Source che del Target (vedi figura seguente):

Database Schema Compare

Database Schema Compare