When I debug a project and there is an error in my code (e.g. a method returns something and when I consume that method, I don't put the returned data into a variable) the popup asking me to run the last successful build comes up.
当我调试项目并且我的代码中出现错误时(例如,一个方法返回一些东西,当我使用该方法时,我不会将返回的数据放入变量中)弹出窗口要求我运行上一次成功的构建出现。
How exactly do I configure this? Also, in what scenario does the Visual Studio build order come in handy? I once built a solution, and it couldn't build one project because a dependent project was not built beforehand. I guess this one possible scenario? Any others?
我究竟如何配置?此外,在什么情况下Visual Studio构建顺序派上用场?我曾经构建了一个解决方案,它无法构建一个项目,因为事先没有构建依赖项目。我想这可能是一种情况?还有其他人?
Thanks
1 个解决方案
#1
Assuming that your solution consists of multiple projects (the only time this is necessary) you need to set up the project dependencies so when you debug the main application all the sub projects are built in the correct order.
假设您的解决方案由多个项目组成(唯一需要的时间),您需要设置项目依赖项,以便在调试主应用程序时,所有子项目都按正确的顺序构建。
Right click over the project and select "Project Dependencies".
右键单击项目并选择“Project Dependencies”。
#1
Assuming that your solution consists of multiple projects (the only time this is necessary) you need to set up the project dependencies so when you debug the main application all the sub projects are built in the correct order.
假设您的解决方案由多个项目组成(唯一需要的时间),您需要设置项目依赖项,以便在调试主应用程序时,所有子项目都按正确的顺序构建。
Right click over the project and select "Project Dependencies".
右键单击项目并选择“Project Dependencies”。