问题
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