Reference project “readonly” in Visual Studio?

試著忘記壹切 提交于 2020-01-02 04:42:47

问题


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.

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

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.


回答1:


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.

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.



来源:https://stackoverflow.com/questions/397448/reference-project-readonly-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!