VSTS 在线新建系统错误 "The specified path, file name, or both are too long."
VSTS online new build system error "The specified path, file name, or both are too long."
我正在 运行使用新的 Visual Studio Team Services Online 进行简单构建,包括在自定义 windows 服务器 2012 R2 VM 上执行以下任务:
- nuget 安装程序
- npm
- Gulp
- Visual Studio 构建
- Visual Studio 测试
- Azure Web 应用部署
- 索引来源和发布符号
- 发布构建工件
任务 #1 到 #4 运行 成功,任务 #5 (vstest) 抛出以下错误:
Starting task: Test Assemblies **$(BuildConfiguration)\*test*.dll;-:**\obj\**
Executing the powershell script: C:\a\tasks\VSTest.0.34\VSTest.ps1
Entering script VSTest.ps1
vsTestVersion = 14.0
testAssembly = **\release\*test*.dll;-:**\obj\**
testFiltercriteria =
runSettingsFile = C:\a\_work\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 下载创建的路径太长)以及解决方法。
我正在 运行使用新的 Visual Studio Team Services Online 进行简单构建,包括在自定义 windows 服务器 2012 R2 VM 上执行以下任务:
- nuget 安装程序
- npm
- Gulp
- Visual Studio 构建
- Visual Studio 测试
- Azure Web 应用部署
- 索引来源和发布符号
- 发布构建工件
任务 #1 到 #4 运行 成功,任务 #5 (vstest) 抛出以下错误:
Starting task: Test Assemblies **$(BuildConfiguration)\*test*.dll;-:**\obj\**
Executing the powershell script: C:\a\tasks\VSTest.0.34\VSTest.ps1
Entering script VSTest.ps1
vsTestVersion = 14.0
testAssembly = **\release\*test*.dll;-:**\obj\**
testFiltercriteria =
runSettingsFile = C:\a\_work\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 下载创建的路径太长)以及解决方法。