简体   繁体   English

发布 Nuget 包的符号

[英]Publish symbols for Nuget package

I am using VSTS and have set up a build script that also publishes to the VSTS internal (private) Nuget feed.我正在使用 VSTS 并设置了一个构建脚本,该脚本也发布到 VSTS 内部(私有)Nuget 提要。 All good so far.到目前为止一切都很好。

Now I want to publish the symbols somewhere so that I can debug those nuget packages.现在我想在某处发布符号,以便我可以调试这些 nuget 包。 Just FYI I am open to another way of doing this if there is a better or easier way!仅供参考,如果有更好或更简单的方法,我愿意接受另一种方法!

So I found the Index Source & Symbols Publish article and associated build step.所以我找到了Index Source & Symbols Publish文章和相关的构建步骤。 This looks great!这看起来很棒! But I don't understand how to make it publish somewhere and where that somewhere should be?但我不明白如何让它在某个地方发布以及应该在哪里发布? Do I have to create an Azure file share and how do I give it appropriate permissions so the build agent can copy it?我是否必须创建 Azure 文件共享以及如何为其授予适当的权限以便构建代理可以复制它? I feel like the docs at this point are either beyond my understanding or are missing vital information我觉得此时的文档要么超出我的理解范围,要么缺少重要信息

If anyone could help me I'd be very grateful.如果有人可以帮助我,我将不胜感激。 Thanks.谢谢。

Ps I have included my build order and activities here if that helps give context Ps 如果这有助于提供上下文,我已经在此处包含了我的构建顺序和活动

构建步骤

There are many ways to publish symbols, for example:发布符号的方式有很多种,例如:

  1. Publish to a shared folder (make sure it can be accessible from build agent)发布到共享文件夹(确保它可以从构建代理访问)
  2. Publish to a folder, then copy or upload to other server through Azure File Copy, Windows Machine File Copy, cURL Upload files etc… steps/task.发布到文件夹,然后通过 Azure 文件复制、Windows 机器文件复制、cURL 上传文件等步骤/任务复制或上传到其他服务器。

You can specify symbol location in VS if you want to debug with these symbol files.如果要使用这些符号文件进行调试,可以在 VS 中指定符号位置。 More information, you can refer to: Specify Symbol (.pdb) and Source Files in the Visual Studio Debugger更多信息,可以参考:在Visual Studio Debugger中指定符号(.pdb)和源文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM