当同一解决方案中的单独项目出现错误时,是否可以调试 .net 项目?
我有一个包含另一个开发人员的多个项目的解决方案。其中一个项目是一个测试应用程序,该应用程序存在错误,因为它硬编码了对该开发人员硬盘驱动器的 DLL 的引用。我不需要测试项目或那些 DLL 来使用解决方案中的其他项目
由于这些错误,我无法在调试模式下运行任何项目。一种解决方案是从解决方案中删除测试项目,但是当另一个项目出现错误时,还有其他方法可以调试其中一个项目吗?确保项目不相互依赖似乎还不够。
I have a solution with multiple projects from another developer. One of the projects is a test app that has errors because it has hard-coded references to DLL's that developer's hard drive. I don't need the test project or those DLL's to use the other projects in the solution
Because of the errors, I can't run any of the projects in debug mode. One solution is to remove the test project from the solution, but is there any other way to debug one of the projects when another project has errors? Making sure the projects don't depend on each other doesn't seem to be enough.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
右键单击该项目并“卸载”它。然后,您应该能够编译并运行该解决方案,同时忽略部分项目。
另请注意:卸载的项目设置不会保存在解决方案/项目文件中,因此您可以签入/我们的代码,而不必担心该设置(除非您以某种方式签入您的 suo/用户文件)。
Right click the project and "Unload" it. You should then be able to compile and run the solution while the partial project is ignored.
Also to note: The unloaded project setting isn't saved inside the solution/project files so you can check in/our code without having to worry that setting (unless you somehow check in your suo/user files).
有几个选项:
There are a few options:
您可以直接启动它,而不是在调试模式下启动,然后将 VS 附加到它。
You can start it directly, not in debug mode and then attach VS to it.