MonoDevelop编译&广汽集团
我对这里发生的事情有点困惑。
我的理解是,当运行时需要程序集时,运行时会首先尝试从执行目录(或依赖的可执行文件所在的目录)加载程序集。之后,它将尝试在 GAC 中查找程序集。
首先,我是在Windows上。
现在,当我在 VS 中编译我的解决方案时,一切工作正常(如预期),但是当我在 MonoDevelop 中编译相同的解决方案时,编译由于与缺少 log4net 引用(我手动为其精确的程序集)相关的错误而停止安装到 GAC 中可以避免这种情况)。
所以,我的问题是:MonoDevelop 是否在编译时查看 GAC 以确定程序集是否可用,或者是否有其他位置需要我提供所需的程序集?
感谢您的帮助!
I'm a bit confused as to what's happening here.
My understanding is that when an assembly is required at runtime, the runtime will first try to load the assembly from the executing directory (or the directory where the dependant executable is located). After which it will attempt to find the assembly within the GAC.
First of all, I am on Windows.
Now, when I'm compiling my solution is VS, everything works fine (as expected), but when I compile the same solution in MonoDevelop, the compilation stops due to errors pertaining to a missing log4net reference (the exact assembly for which I manually installed into the GAC to avoid this situation).
So, my question is this: Does MonoDevelop look at the GAC at compilation time to determine if an assembly is available, or is there another location in which I need to provide the required assembly?
Thank you for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 MonoDevelop 网站:
From MonoDevelop site: