简体   繁体   English

Visual Studio表单修改的构建时间较长

[英]Visual Studio Long Build Time on Form Modification

I am currently working on a C# Forms Application. 我目前正在研究C#表单应用程序。

I noticed that every time I make changes to a form in the designer, it takes a long time to build the application. 我注意到,每次在设计器中对表单进行更改时,构建应用程序都需要很长时间。

I tried to modify code in the class itself, and this does not slow down the build. 我试图修改类本身中的代码,但这不会减慢构建速度。

Does anyone know what might be causing this, as its getting very irritating? 有谁知道这是什么引起的,因为它变得非常令人讨厌?

Thanks, 谢谢,

PM 下午

Not a direct solution, I had success investigating similar issues using Sysinternal's Process Monitor to see which resources (files, registry, etc.) a process is accessing. 这不是一个直接的解决方案,我成功地使用Sysinternal的Process Monitor调查了类似的问题,以查看进程正在访问哪些资源(文件,注册表等)。

Maybe you can use this (free) tool to get a clue on what devenv.exe (or csc.exe or similar tools) is accessing. 也许您可以使用此(免费)工具来了解devenv.exe(或csc.exe或类似工具)正在访问什么。

You might want to go to: 您可能要转到:

"Tools " ---> "Options" ---> "Windows Forms Designer" ---> "Toolbox" node

and check the value under "AutoToolboxPopulate". 并检查“ AutoToolboxPopulate”下的值。 I have had huge performance issues when the value is set to "True". 当值设置为“ True”时,我遇到了巨大的性能问题。 Changing this to "False" will help, but make sure you close the solution and open it again (I would even close Visual Studio IDE and relaunch it). 将其更改为“ False”将有所帮助,但请确保您关闭解决方案并再次打开它(我什至会关闭Visual Studio IDE并重新启动它)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM