gpt4 book ai didi

indexing - TFS 2015 中的索引源和发布符号步骤失败

转载 作者:行者123 更新时间:2023-12-02 14:42:26 26 4
gpt4 key购买 nike

默认情况下,TFS Build 在 Visual Studio Build 定义中创建“索引源和发布符号”步骤。当该步骤的属性“发布符号的路径”为空时,一切正常。但是当设置本地目录的路径时,该步骤会生成以下错误:

2015-09-25T11:00:09.7991491Z Executing the powershell script: C:\NewAgent\tasks\PublishSymbols\1.0.4\PublishSymbols.ps1
2015-09-25T11:00:10.0022755Z Find-Files -SearchPattern **\bin\**\*.pdb -RootFolder C:\NewAgent\_work\990dcb3f\Projects
2015-09-25T11:00:10.0491548Z Found 15 files to index...
2015-09-25T11:00:10.0491548Z Invoke-IndexSources -RepositoryEndpoint <repositoryEndpoint> -SourceFolder C:\NewAgent\_work\990dcb3f\Projects -PdbFiles <pdbFiles>
2015-09-25T11:00:10.6272794Z Invoke-PublishSymbols -PdbFiles <pdbFiles> -Share C:\DebugSymbols -Product EntityMapper -Version 20150925.14 -MaximumWaitTime 7200000 -MaximumSemaphoreAge 1440 -ArtifactName
2015-09-25T11:00:10.7348541Z ##[error]Can't infer artifact type from artifact location C:\DebugSymbols.
2015-09-25T11:00:10.7504779Z
2015-09-25T11:00:10.7504779Z Start: AssociateArtifact
2015-09-25T11:00:10.7504779Z ##[error]Artifact Type is required.
2015-09-25T11:00:10.7504779Z End: AssociateArtifact

pdb 文件被发布到指定的目录,所以我真的不明白是什么导致了错误(然后导致整个构建作业失败)。

最佳答案

When the step's property "Path to publish symbols" is empty, everything works fine.

是的,因为如果没有设置符号路径,脚本只会索引源,不会发布符号。

But when setting the path to a local directory, the step generates the error

您需要prepare your symbol store 。根据您的情况设置文件夹共享和权限。

关于indexing - TFS 2015 中的索引源和发布符号步骤失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32781426/

26 4 0
文章推荐: encoding - 我应该使用哪种数据结构进行位填充?
文章推荐: .net-4.0 - 为什么协变类型参数不允许我编写 [List lst = new List()]?