TFS & Visual Studio ALM – by Neno Loje

(formerly Team System, VSTS)

Build fails to find GraphCmd.exe (Layer Diagram Validation)

February 14th, 2014 · No Comments · Team Foundation Build (TF Build)

The Problem

  • The Build breaks with the following message:

Error message:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\ArchitectureTools\Microsoft.VisualStudio.TeamArchitect.LayerDesigner.targets (148): The "GraphCmd" task failed unexpectedly. System.InvalidOperationException: Cannot start process because a file name has not been provided.

The Solution

Add this xml snippet into all of your Modeling project (*.modelproj) files:
    <GraphCmdPath Condition="’$(GraphCmdPath)’==” and ‘$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\Architect@GraphCmdDir)’ != ”">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\Architect@GraphCmdDir)</GraphCmdPath>



No Comments so far ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment