A
A
Andrew2016-11-02 13:37:52
Team Foundation Server
Andrew, 2016-11-02 13:37:52

How to build a project in TFS 2015?

Moving from TFS 2010 to 2015, put 2015 on a test server, and I'm trying to set up a build. The agent is on Windows Server 2008 R2
Regardless of what is selected for the build - MSbuild or Visual Studio build, I get an error

Не удалось загрузить обработчик PowerShell задач MSBuild с версией 1.0.11.

or
Не удалось загрузить обработчик PowerShell задач VSBuild с версией 1.0.11.

Google said that the server with the agent needs PowerShell version 3.0 and higher, but 3.0 was already there. Upgrading to 4.0 and 5.0 did not help.
What could be the problem?
ps Output of psversiontable
PS C:\> $psversiontable

Name                           Value
----                           -----
PSVersion                      5.0.10586.117
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.10586.117
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2016-11-02
@byte916

I solved the problem, it turned out that the matter was in the PowerShell security policy.
If you do
it, the problem is fixed You
can return it like this
In general, you need to dig towards allowing the execution of certain scripts, I have them in the C:\usr\TfsAgents\tasks folder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question