VSTS单元测试错误消息

时间:2017-05-02 07:57:14

标签: azure-pipelines

今天早上醒来,我在VSTS的NUnit测试中收到以下错误消息:

`##[section]Starting: Test Assemblies **\*.Unit.Tests.dll;-:**\obj\**
==============================================================================
Task         : Visual Studio Test
Description  : Run tests with Visual Studio test runner
Version      : 2.0.30
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=835764)
==============================================================================
!**\obj\**
[command]powershell -NonInteractive -ExecutionPolicy Unrestricted -file d:\a\_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\2.0.30\vs15Helper.ps1
Does not exist.
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
  <Nil />
</Objs>
##[error]TypeError: Cannot read property 'replace' of null
##[error]TypeError: Cannot read property 'replace' of null
##[section]Finishing: Test Assemblies **\*.Unit.Tests.dll;-:**\obj\**

刚刚开始发生,谁能告诉我为什么?我正在使用Visual Studio版本2构建步骤

1 个答案:

答案 0 :(得分:1)

选择构建代理服务器所具有的相应版本的visual studio。

enter image description here