question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Index Sources & Publish Symbols <--> portable PDBs

See original GitHub issue

Hi all,

this is more a question like an issue - hope that’s ok 😃

As Visual Studio 2017 update 15.3 is released and now supports Visual Studio Team Services Symbol Server we’ve added the Index Sources & Publish Symbols task to our Release Task-Group of .NET core NuGet packages:

image

We then realized, that while having portable PDBs those will not be indexed:

image

We read in this comment that portable PDBs by default support source linking.

We tried some different setups (e.g using SourceLink with <PackageReference Include="SourceLink.Create.CommandLine" Version="2.1.2" PrivateAssets="All" /> but didn’t managed to get it work.

The symbols itself are retrieved by Visual Studio from the VSTS Server, but it is not able to find the the corresponding source files:

SRCSRV: The module ‘C:\Users\k.nuget\packages\xxxx.foundation.logging.serilog\1.3.2\lib\netstandard1.6\xxxx.Foundation.Logging.Serilog.dll’ does not contain source server information.

image

Any help how to get this working is appreciated. 😃

Cheers, Marcus

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mitchdennycommented, Feb 11, 2019

Closing this issue down. SourceLink support for Azure Repos was shipped, including authenticated repositories. For portable PDBs, you just don’t index the symbols, publish works the same way. Then everything should work.

0reactions
mjsabbycommented, Nov 10, 2017

Yes, that is unfortunate. We use a proxy internally, but I’d love to see this just get supported by VS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PublishSymbols@2 - Index sources and publish symbols v2 task
Use this task to index your source code and publish your symbols to a file share or Azure Artifacts symbol server. Indexing your...
Read more >
Sources & Publish Symbols does not index source for some pdb
I'm using the index source and publish symbol task in our project. ... Source indexing is currently not enabled for Portable PDBs as...
Read more >
Index Sources & Publish Symbols task - vsts-docs - GitHub
Use this task in a build or release pipeline to index your source code and optionally publish symbols to the Package Management symbol...
Read more >
Index Sources & Publish Symbols step not ... - Stack Overflow
As mention in Microsoft documentation portable PDB are not compatible and the file is ignored during process, you can check it setting system.debug...
Read more >
Symbols and Sources - Coding – Michael Spranger
It is currently not possible to inject Portable PDBs into the (classic) symbol server on a file system, see Index & Publish symbols...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found