Unable to index one or more source files for symbols file

倖福魔咒の 提交于 2020-04-30 09:18:53

问题


I am trying to create Nuget packages and push it to azure artifacts. Am using Index sources and publish symbols to publish symbols to the azure symbol server. But i keep getting this warning

Unable to index one or more source files for symbols file 'D:\a\1\s\MyClassLibrary\bin\Debug\netstandard2.0\MyClassLibrary.pdb'.

I have tried setting debug type to full but still the same. I also tried packing PDB in to the nuget package itself but still it cant find the source code even though visual studio shows the symbols are loaded

Loaded 'C:\Users\UserName.nuget\packages\myclasslibrary\2.0.15\lib\netstandard2.0\MyClassLibrary.dll'. Symbols loaded.

I cant find any articles that explains this in depth .

Am using the below arguments for dotnet pack command after which the publish symbol task metioned above is executed

--output $(build.artifactstagingdirectory) --include-symbols --include-source -v d -c Debug --version-suffix "alpha" -p:SymbolPackageFormat=snupkg

来源:https://stackoverflow.com/questions/61285765/unable-to-index-one-or-more-source-files-for-symbols-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!