azure - VSTS在线新建系统错误 "The specified path, file name, or both are too long."

标签 azure build-process azure-devops azure-pipelines-build-task pathtoolongexception

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

  1. nuget 安装程序
  2. npm
  3. 咕噜咕噜
  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:\a\tasks\VSTest\1.0.34\VSTest.ps1
Entering script VSTest.ps1
vsTestVersion = 14.0
testAssembly = **\release\*test*.dll;-:**\obj\**
testFiltercriteria = 
runSettingsFile = C:\a\_work\1\s
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

最佳答案

This blog posts解释了问题(npm 下载创建的路径太长)以及如何解决该问题。

关于azure - VSTS在线新建系统错误 "The specified path, file name, or both are too long.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36387859/

相关文章:

azure - 仅更新插入更改/新字段?

tfs - 如何配置 TFS 构建过程以通过测试 Controller 在测试代理上执行测试?

azure-devops - 列出构建工件的文件

c# - REST API 未从 AZURE git 分支下载文件

azure - 无法在 Xamarin iOS 中加载 System.Net.Http.Primitives

java - Maven - 在构建时包含不同的文件

azure - 运行管道时,如何知道管道正在使用 Microsoft 托管代理?

Azure DevOps 服务连接已过期且无法编辑/续订

Azure 存储表副本

java - 从源代码构建 Freemarker