gpt4 book ai didi

visual-studio-2010 - Visual Studio 2010 “Preparing Solution”对话框

转载 作者:行者123 更新时间:2023-12-03 08:41:09 25 4
gpt4 key购买 nike

当我打开解决方案时,VS 2010显示的“准备解决方案”对话框是什么废话?这会向所有人显示吗?还是我的安装程序搞砸了?

有人知道它的实际作用吗?

最佳答案

这是来自卡梅隆·麦科(Cameron McColl)的官方历史:

In Dev10 we invested in improving solution load time by looking at making the load asynchronous. Unfortunately due to time constraints this work didn’t make it into Dev10 so instead we decided to at least make the user experience slightly better by giving the user feedback on what was going on during solution load. Initially this involved a dialog that presented accurate feedback on how many projects were being loaded along with the name of the currently loading project. Early testing of this experience revealed that there was often a non-trivial delay (i.e. the spinning donut and “not responding” window title) after the projects were loaded and the existence of the dialog made this delay very apparent once the dialog was dismissed. So what is the delay? There are 2 main things going on after the solution projects have been loaded. First all previously loaded documents/editors are reopened and for some designer files this can take a few seconds. Secondly and usually much worse we call NotifyOnAfterSolutionOpen which is an extension point in VS. Any subscriber to this event gets to run their code at this point and quite often this code is very expensive. For Dev10 we didn’t have the time to go improve the perf of all of these subscribers and so it was felt that a second dialog was required to make it clear that the Solution Load was still underway. What really sucks about the second dialog is that it doesn’t tell you what part of the code is causing the delay and worse the progress control is the marquee style which means it’s non determinant (unlike the first dialog).

Moving forward we are continuing to investigate ways to make solution load truly asynchronous and as such never show such nasty dialogs.In the dialog's defense, our research indicates that most people prefer a modal status dialog over the spinning donut or unresponsive UI. Of course, everyone prefers no delay at all, and we’re working on that for Dev11.

关于visual-studio-2010 - Visual Studio 2010 “Preparing Solution”对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3343717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com