参考项目“只读”在Visual Studio? [英] Reference project "readonly" in Visual Studio?

查看:133
本文介绍了参考项目“只读”在Visual Studio?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2008的两个解决方案中有两个应用程序共享一个通用的dll,dll代码作为项目包含在第一个应用程序解决方案中。

I have two applications in two solutions in VS2008 that share a common dll, the dll-code is included as a project in the first applications solution.

是吗可能允许第二个解决方案引用dll项目只读?

Is it possible to allow the second solution to reference the dll project "readonly"?

我想要谁打开第二个解决方案,以便能够在调试过程中进入dll,但不能能够改变代码。

I want whoever opens the second solution to be able to step into the dll during debugging but not be able to change the code.

推荐答案

我将根据dll + pdb进行编译。 pdb足以进入代码,无需编辑它。您可以在项目属性中启用pdb(调试符号)作为输出。

I would simply build against the dll+pdb. The pdb is enough to step into code, without ever being able to edit it. You can enable pdb (debug symbols) as an output in project properties.

对于加载pdb文件,Shawn Burke的演练这里框架本身,但相同的概念适用,只是从不同的位置)应该让你开始。

For loading pdb files, Shawn Burke's walkthrough here (for the .NET framework itself, but the same concept applies, just from a different location) should get you started.

这篇关于参考项目“只读”在Visual Studio?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆