TFS & Visual Studio ALM – by Neno Loje

(formerly Team System, VSTS)

Entries from February 14th, 2014

Build fails with missing file: System.Management.Automation.dll

February 14th, 2014 · 1 Comment · Team Foundation Build (TF Build)

The Problem The Build breaks with the following message: Exception Message: Could not load file or assembly ‘System.Management.Automation, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The system cannot find the file specified. (type FileNotFoundException) The Solution Install Windows Management Framework 3.0 on the build server. The Cause You might be using the Community TFS Build Extensions. […]

[Read more →]

Tags:

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 There’s a workaround available on Microsoft Connect: Add this xml snippet into all of your Modeling project (*.modelproj) files: <PropertyGroup>     […]

[Read more →]

Tags:

How to compile projects that reference Microsoft.Office.Interop assemblies with a build server

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

The Problem A project that references Office interop assemblies (Microsoft.Office.Interop) fails to compile on TF Build (or VSO’s Elastic Build Service). The error message might be similar to this one: The type or namespace name ‘Office’ does not exist in the namespace ‘Microsoft’ (are you missing an assembly reference?) The Solution (based on this forum […]

[Read more →]

Tags: