ILMerge 即使使用 XMLDocs 开关,也会生成不具有智能感知的 dll
有没有人经历过这个或找到解决方案?我已尝试以下操作:
- 直接引用输出 dll,而不移动它
- 从 GAC 卸载输出 dll
这两个选项都没有效果。请注意,生成的 XML 文档与 dll 具有相同的名称,并且包含在其中。
Has anyone experienced this or found a solution? I have tried the following:
- Referencing the output dll directly without moving it
- Uninstalling the output dll from the GAC
Neither option made a difference. Please note that the generated XML doc has the same name as the dll and is included with it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊哈。我找到了发生这种情况的原因。
如果您在 Visual Studio 中引用您的ILMerge项目(即
添加引用 -> 项目
),那么Intellisense将不会使用生成的 XML 文档。解决方法:在构建后步骤中,将输出文件复制到公共目录(例如
Reference Assemblies
),然后链接到DLL。您仍然可以在解决方案中保留该项目,但是您必须设置项目依赖项,以便在您进行更改时能够构建该项目。哈特哈,
Ah ha. I found the reason why this was occurring.
If you referencing your ILMerge project within Visual Studio (i.e. as
Add Reference -> Project
) then Intellisense will not use the generated XML doc.To solve: In your post-build step copy your output files to a common directory (e.g.
Reference Assemblies
) and then link against the DLLs. You can still have the project in the solution, however you must setup the project dependencies so that it will build if you have made changes.HTH,