3

我正在尝试使用将一堆.pdb文件添加到符号服务器symstore.exe。不是所有的.pdb' 都在目录中,而是选择它们(基于日期)。

要将它们添加到单个事务中,我正在使用symstore ... /f '@filelist.txt'where filelist.txtis a file contains real .pdbone per line - 正如命令行帮助所说:

/f File         Network path of files or directories to add.
                If the named file begins with an '@' symbol, it is treated
                as a response file which is expected to contain a list of
                files (path and filename, 1 entry per line) to be stored.

(此信息仅存在于命令行帮助中symstore,而不存在于相应的在线帮助页面中。)

这不起作用,它存储0个文件。我认为这个功能——从文件列表中添加多个文件——并没有真正实现。

有没有人成功地在单个事务中添加文件列表symstore.exe

4

1 回答 1

6

最后,我想通了。带有@和响应文件的功能实际上是受支持的。

使用 symstore 的/o开关调试输出后,我注意到错误输出中有一个奇怪的字符ÿþC

PS C:\Development\symstore add /f @C:\temp\dllsAndPdbsToAdd.txt /s C:\temp\symstore\ /t AwesomeProject 
SYMSTORE MESSAGE: 0 alternate indexers registered
SYMSTORE MESSAGE: LastId.txt reported id 8
SYMSTORE MESSAGE: Final id is 0000000008
SYMSTORE ERROR: Class: Internal. Desc: Failed to index C:\Development\AwesomeProject\ÿþC. Line: 169. Error 32

因此,我将Notepad++ 中 @C:\temp\dllsAndPdbsToAdd.txt 文件的编码更改为ANSI并且它起作用了。

于 2016-04-10T15:45:22.800 回答