CI build error using the Visual Studio Test phase after updating .Net 4.6 - Executor process exited; There was no endpoint listening in net.pipe

I just updated all the projects in my solution to point to .Net 4.6 (there is a web application, some class libraries, a database project, etc.). I have a CI assembly created in Visual Studio Team Services (using the new build system, not XAML), which was successfully built before the upgrade. This assembly definition includes debugging, intermediate, and production assemblies, and the assembly definition consists of two steps:

  • Creating Visual Studio
  • Visual Studio Test

Before this infrastructure update, everything was built perfectly. I updated and built everything locally, and it all worked perfectly. I could conduct tests and get a green color on the board. Now that I checked my code, it started building the CI, and in the “Visual Studio Test” phase (taken from the logs) I got the following errors / errors:

2015-09-18T19:08:02.1212067Z Microsoft (R) Test Execution Command Line Tool Version 14.0.23107.0
2015-09-18T19:08:02.1489666Z Copyright (c) Microsoft Corporation.  All rights reserved.
2015-09-18T19:08:02.8906952Z Starting test execution, please wait...
2015-09-18T19:08:03.3713251Z Warning: Using Isolation mode to run tests as required by effective Platform:X86 and .Net Framework:Framework35 settings for test run. Use the /inIsolation parameter to suppress this warning.
2015-09-18T19:08:07.4457804Z ##[error]Error: Executor process exited.
2015-09-18T19:08:07.4457804Z ##[error]
2015-09-18T19:08:07.4557251Z ##[error]Error: There was no endpoint listening at net.pipe:[...redacted...] that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
2015-09-18T19:08:07.4557251Z ##[error]
2015-09-18T19:08:07.7730938Z ##[error]VSTest Test Run failed with exit code: 1
2015-09-18T19:08:07.8043435Z ##[warning]No results found to publish.

Visual Studio Build , Debug , . , Azure VM, , , CI Hosted, , , " ..." .

? - 4.6 VSTS?

: SDK .Net Framework 4.6 : Of

+4
4

, . Visual Studio Test :

"" VSTest "Visual Studio 2013".

, . , , Hosted, . , , . , VSTest Visual Studio 2015 , , -...

+2

, .NET 3.5: Warning: ... effective Platform:X86 and .Net Framework:Framework35 ...

, vstest.console 4.5. ( 4.6 ). .

Visual Studio Test. /Framework:Framework45.

Other console options: / Framework: Framework45

+13

( , VSTest) 4.6.1. , package.config Framework Framework pacakge, .Net 3.5. .

0
source

After installing .Net Framework 3.5 everything was fine! See the comment "cottsay" at https://github.com/Microsoft/vsts-tasks/issues/572

0
source

Source: https://habr.com/ru/post/1608081/


All Articles