发布时添加dll源码

发布于 2024-09-27 03:17:03 字数 122 浏览 1 评论 0 原文

我有一个 dll,我们团队中的很多人都在使用它 - 我希望他们能够根据该 dll 进行构建,但如果他们想查看它是如何编写的,也能够单步进入并单击源代码

。看看 MSDN dll 可以做到这一点 - 他们是如何做到的

I have a dll which gets used by a lot of people in our team - I want them to be able to build against that but also be able to step into and click into the source code if they want to see how it is written

I can see that is possible with the MSDN dlls - How do they do that

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦言归人 2024-10-04 03:17:03

您正在寻找的技术是“符号服务器”,其中包括“源服务器”。

请参阅符号服务器和符号存储< /a> 了解更多信息。

The technology you're looking for is "Symbol server" and within that, "Source server".

See Symbol Server and Symbol Stores for more information.

七月上 2024-10-04 03:17:03

您需要设置一个符号服务器来保存调试符号和源代码。

请参阅此处了解有关为您的团队设置一项的更多详细信息。

You need to setup a symbol server that will hold the debugging symbols and source code.

See here for more details on setting one up for your team.

别挽留 2024-10-04 03:17:03

虽然源代码没有嵌入程序集本身,但我相信您所追求的是 符号服务器(使用 Symstore 实用程序创建)

符号存储是一个数据库,允许调试器查找用于任何给定模块的正确符号 - 如果您发布/调试,这非常有用相同程序集的许多不同版本。

通过一些额外的魔法,您还可以在符号中嵌入源代码控制信息,以便任何兼容的调试器也自动知道足够的信息来检索用于构建该模块的确切源代码。

然而,正如我所说 - 源代码本身并未嵌入程序集中,而只是允许调试器检索源代码所需的信息。

关于如何执行上述所有操作,有一个很好的指南:

Although the source code is not embedded in the assembly itself, I believe what you are after is a symbol server (created using the Symstore utility)

A symbol store is a database that allows debuggers to look up the correct symbols to use for any given module - very useful stuff if you ship / debug many different versions of the same assemblies.

With some extra magic you can also embed source control information inside your symbols, so that any compatible debugger also automatically knows enough information to retrieve the exact source used to build that module.

As I said however - the source code itself is not embedded in the assembly, merely the information required to allow the debugger to retrieve the source.

There is an excellent guide on how to do all of the above:

笑梦风尘 2024-10-04 03:17:03

您需要设置和配置:1) 源服务器 2) 符号服务器 3) 设置“Windows 调试工具”在此处输入链接说明。构建 dll 后,您需要使用脚本“svnindex”对代码进行索引。有关更多详细信息,请阅读 \Program Files\Debugging Tools for Windows\srcsrv\srcsrv.doc

You need to setup and configure : 1) source server 2) symbol server 3) setup "Debugging Tools for Windows" enter link description here . After build dll, you need indexing your code with script "svnindex". For more details, read \Program Files\Debugging Tools for Windows\srcsrv\srcsrv.doc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文