开发者

How do I step through a referenced assembly in Visual Studio?

I have a referenced assembly that keeps failing when I call it. I have the source for this assembly in a large project, Project A. I've compiled it and have been using it in Project B. Unfortunately Project B keeps failing and the stack trace shows that it fails on Project A'开发者_StackOverflow中文版s assembly.

It seems like I have two options:

  • Add Project A to Project B, change all references to the assembly to the project. This seems like it'd be a lot of work.
  • Use some third party tool, like Reflector, to step through the assembly.

Is there any other way I'm missing it? Is there anyway to link the projects easily?

Sorry if this sounds naive. it is the first time I've run into it.


if you have source code of project A

just include PDB file and assign referecne of the project A dll.

when you reach method of prject A press f11 which will take you to project A.


Add ProjectA.pdb to the folder that you're referencing the DLL from and Visual Studio should pick up the debugging symbols and step in automatically.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜