本文介绍了无法加载任务处理程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了Windows Server 2008 R2 VM.从visualstudio在线下载了构建代理.注册并设置.现在,对于我尝试过的所有构建类型,我都会收到以下消息之一(每种构建尝试类型都显示一条消息):

I've set up a windows server 2008 R2 VM. downloaded the build agent from visualstudio online. Registered it and set it up. Now for all the build types I've tried I get one of these messages (one for each type of build attempt):

Unable to load task handler Process for task CmdLine with version 1.0.12.

Unable to load task handler PowerShell for task VSBuild with version 1.0.16.

Unable to load task handler PowerShell for task MSBuild with version 1.0.15.

PowerShell版本信息:

PowerShell version Information:

PS C:\Users\Administrator> $PSVersionTable

Name                           Value
----                           -----
CLRVersion                     2.0.50727.5485
BuildVersion                   6.1.7601.17514
PSVersion                      2.0
WSManStackVersion              2.0
PSCompatibleVersions           {1.0, 2.0}
SerializationVersion           1.1.0.1
PSRemotingProtocolVersion      2.1

添加功能"对话框没有 the互联网上仅有的文章似乎可以部分解决此问题.但是,powershell已安装在功能列表中.

The add features dialog doesn't have options like specified in the only article on the internet that appears to even partially apply to this problem. However powershell is installed in the features list.

推荐答案

VSO的构建代理需要PowerShell v3或更高版本.服务器上的PowerShell为v2.您需要安装更新的PowerShell版本.

Build agent for VSO requires PowerShell v3 or newer. The PowerShell on your server is v2. You need to install a newer PowerShell version.

PowerShell v3: https://www.microsoft.com/en-us/download/details.aspx?id=34595

PowerShell v3: https://www.microsoft.com/en-us/download/details.aspx?id=34595

PowerShell v4: https://www.microsoft.com/en-us/download/details.aspx?id=40855

PowerShell v4: https://www.microsoft.com/en-us/download/details.aspx?id=40855

从MSDN生成代理的先决条件:

Prerequisites for Build Agents from MSDN:

•Visual Studio 2013或更高版本支持的操作系统

• An operating system that is supported by Visual Studio 2013 or newer

•Visual Studio 2013或Visual Studio 2015

• Visual Studio 2013 or Visual Studio 2015

•PowerShell 3或更高版本

• PowerShell 3 or newer

这篇关于无法加载任务处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 02:26