简体   繁体   English

在Visual Studio中引用项目“readonly”?

[英]Reference project “readonly” in Visual Studio?

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. 我在VS2008中的两个解决方案中有两个共享一个共同dll的应用程序,dll代码作为项目包含在第一个应用程序解决方案中。

Is it possible to allow the second solution to reference the dll project "readonly"? 是否可以允许第二个解决方案“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,但无法更改代码。

I would simply build against the dll+pdb. 我只是针对dll + pdb构建。 The pdb is enough to step into code, without ever being able to edit it. pdb足以进入代码,无需编辑它。 You can enable pdb (debug symbols) as an output in project properties. 您可以在项目属性中启用pdb(调试符号)作为输出。

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. 对于加载pdb文件,肖恩·伯克的演练在这里 (为.NET Framework本身,而是概念同样适用,只是从不同的位置)应该让你开始。

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

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