I am working on Azure DevOps pipeline where I publish a NuGet Feed. The feed has abc.dll and abc.pdb files. The consumer of my feed is able to get abc.dll and abc.pdb into their bin folder. They are also able to call methods in abc.dll.
My question is how to include source code into PDB files. I want the consumer of my feed to step into code while debugging. Currently, when they do they get a message saying source code file is not found.
I know its security risk to let others know your code but we just want to try and see how it works. I don't want consumer to do anything. Just get my feed, call methods, and step into code.
UPDATE
I was able to solve the issue following below. I added my source code files in my package and consumer is able to get them to their local machine and was able to step into the code.
Is it possible to host both regular and symbols packages in a NuGet local feed on a network share?
But I am concerned that I have many source code files and that will lead to size of my feed to increase and also I do not want my source code files to be downloaded to consumer local machine.
I was able to publish symbols using Index Sources & Publish Symbols task in Azure DevOps pipeline but I am getting error saying my source code file is not found on consumer side when they try to debug and step into code. I tried below but not works.
How do we really debug code which was a result of Index Sources & Publish Symbols task ?
SOLUTION
I am able to solve the issue following exact steps in below links