VSTS 联机新建系统错误"The specified path, file name, or both are too long."



我正在使用新的Visual Studio Team Services Online运行简单的构建,包括在自定义windows服务器2012 R2 VM上执行以下任务:

  1. nuget安装程序
  2. npm
  3. Gulp
  4. Visual Studio内部版本
  5. Visual Studio测试
  6. Azure Web应用程序部署
  7. 索引源&发布符号
  8. 发布生成项目

任务#1到#4成功运行,任务#5(vstest)抛出以下错误:

Starting task: Test Assemblies **$(BuildConfiguration)*test*.dll;-:**obj**
Executing the powershell script: C:atasksVSTest1.0.34VSTest.ps1
Entering script VSTest.ps1
vsTestVersion = 14.0
testAssembly = **release*test*.dll;-:**obj**
testFiltercriteria = 
runSettingsFile = C:a_work1s
codeCoverageEnabled = false
pathtoCustomTestAdapters = 
overrideTestrunParameters = 
otherConsoleOptions = 
testRunTitle = 
platform = any cpu
configuration = release
publishRunAttachments = true
##[error]The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
##[warning]No test assemblies found matching the pattern: '**release*test*.dll;-:**obj**'.
Finishing task: VSTest

这篇博客文章解释了这个问题(npm下载会创建一个太长的路径)以及如何解决它。

相关内容

最新更新