TFS & Visual Studio ALM – by Neno Loje

(formerly Team System, VSTS)

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

The Cause

  • You might be using the Community TFS Build Extensions. These include the InvokePowerShellCommand activity, which has a dependency on this .DLL



One Comment so far ↓

  • jan

    Hi, i having the same problem but with an old version of server.. windows server 2003.
    do you have any other suggestion/solution for this as I bealieve windows management framework 3.0 is not compatible with windows server 2003.

Leave a Comment