每当我测试我的应用程序时都会运行构建 [英] Build is run everytime I test my application

查看:64
本文介绍了每当我测试我的应用程序时都会运行构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经从Vb6.0升级了,测试应用程序非常简单.您开始调试的每个tiome都需要几秒钟,您就可以运行您的应用程序.
在Vb.Net中,我的计算机速度面临严重问题.
当我按Start Debugging时,它会启动Build,然后花费几分钟,即使我必须测试一条语句.

无论如何,我可以避免这种延迟吗?

谢谢
Furqan

Hi,
I have been upgraded from Vb6.0 Testing application was very easy in that. Every tiome you start debugging, it takes a few seconds and you can run your application.
While in Vb.Net, I am facing severe problem with my computer''s speed.
When I press Start Debugging, it starts Build and then take several minutes, even if I have to test a single statement.

Is there anyway I could avoid this delay?

Thanks
Furqan

推荐答案

不是,不是.如果进行更改,无论大小如何,都必须重新构建项目以构造exe:否则,程序将尝试针对与正在运行的源代码不同的源代码进行调试.
尽管程序可以正常运行,但是一旦您开始使用调试器执行任何操作,它们就会与时俱进,并且会变得很混乱而无法继续.

恐怕您可以通过减少解决方案的项目量和减少项目的数量来加快速度,但这恐怕是唯一的解决方案,而不是获得更快的PC.
Not really, no. If you make a change, no matter how small, the project must be re-built to construct the exe: otherwise the progam will be trying to debug against source code which is not the same as that which is running.
While the program will work fine, as soon as you start to do anything with the debugger, they would be out of step and it would get too confusing to continue.

You can speed things up by having less projects ion your solution, and by having smaller projects, but that is about your only solution other than getting a faster PC, I''m afraid.


您需要构建代码以包括最新更改.构建已经过优化,因为它仅构建那些已更改的项目.重建解决方案实际上会构建解决方案中包含的所有项目.

我猜您需要研究一些升级系统的方法.
You need to build your code to include the latest changes. Build is already optimized, as in, it only builds those projects that have been changed. Rebuild solution actually builds all projects included in your solution.

I guess you need to look at some ways to upgrade your system.


您需要构建代码以包含最新的更改.构建已经过优化,因为它仅构建那些已更改的项目.重建解决方案实际上会构建解决方案中包含的所有项目.

我想您需要研究一些升级系统的方法.

您可以按照讨论的
You need to build your code to include the latest changes. Build is already optimized, as in, it only builds those projects that have been changed. Rebuild solution actually builds all projects included in your solution.

I guess you need to look at some ways to upgrade your system.

You can look at the "Only build startup projects and dependencies on Run" settings in the tools / options menu as discussed here[^]. It could help.


这篇关于每当我测试我的应用程序时都会运行构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆