为什么工作流程设计器在编辑构建流程模板时速度如此之慢?
除了上面的问题之外,没有什么需要补充的了。
我有一个相当简单的构建过程模板,它几乎没有偏离默认模板。
我有两个自定义活动,根据建议,它们位于同一解决方案中的单独程序集中。
然而......
打开模板大约需要两分钟。
更改工作流中活动的属性、重新排序工作流中的活动、向工作流添加活动,所有这些都需要 30-60 秒。
目前它完全无法使用,我开始后悔从 Cruise Control 迁移到 TFS 进行构建管理:(
还有其他人经历过这个或知道一个不错的解决方法吗?简单地手动编辑 XAML 文本是否更好?
谢谢
There's not much more to add really than the above question.
I have a fairly simple build process template, which has hardly deviated from the default one.
I have two custom activities, which by recommendation live in a separate assembly within the same solution.
However....
Opening the template takes about two minutes.
Changing properties on an activity in the workflow, reordering activities in the workflow, adding activities to the workflow, all take between 30-60 seconds.
It's completely unusable at the moment and I'm beginning to regret moving from Cruise Control to TFS for build management :(
Does anyone else experience this or know a decent workaround? Is it better to simply edit the XAML text by hand?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我们刚刚从 TFS 2008 升级到 2010,我与 Steve 打开未经编辑的 DefaultTemplate.xaml 文件的经历完全相同。 VS 2010甚至进入无响应状态。硬件:3GHz 双核,4GB RAM。
它不仅慢而且无法使用。
We just upgraded from TFS 2008 to 2010 and I have the very same experience as Steve opening the unedited DefaultTemplate.xaml file. VS 2010 even gets into not responding state. Hardware: 3GHz Dual Core, 4GB RAM.
It is not just slow but unusable.
您可以通过两种方式编辑构建定义。 (或任何工作流程定义)
首先,你可以从root开始,开始扩展细节。所有级别都显示在一个视图中,这种方法非常慢。扩展的细节项目越多,速度就越慢。
相反,您可以保持构建工作流程折叠并通过双击标题钻取详细信息项目,这会在单独的视图中打开详细信息项目,并且不会引入任何性能问题。
There are two ways you can edit a build definition. (or any workflow definition)
First, you can start from root and start expanding details. All levels are shown in a single view and this approach is extremely slow. More detail items you expand, more slow it gets.
Instead, you can keep the build workflow collapsed and drill into detail items by double clicking on title which opens detail items in separate views and does not introduce any performance problems.
您使用什么操作系统? VS 2010 在 Windows XP 上通常相当慢,我相信这是因为它是使用 WPF 构建的。有一个 KB< /a> 旨在加速 Windows XP 中的 VS2010。我用过它,但说实话我没有注意到太大的区别。这可能是因为我被迫使用糟糕的硬件!
What OS are you using? VS 2010 is quite slow in general on Windows XP, I believe that this is due to it being built using WPF. There is a KB which is meant to speed up VS2010 in Windows XP. I've used it, but to be honest I didn't notice much difference. That could be down to the poor hardware I'm forced to use though!
史蒂夫我同意你的观点。我使用工作流来构建定义已经有一段时间了,VS2010 加载它们的速度非常慢。此外,当我进行任何修改或保存文件时,修改需要超过 15 秒,保存需要超过 40 秒,而且我在一台非常好的机器上运行它们。了解这个问题是否在 VS2012 中得到解决将会很有趣。有人测试过吗?
--
更新 [01/02/2013]:
所有这些问题均已通过新版本的 Microsoft Visual Studio 2012
构建流程工作流模板和 Visual Studio 2010 绝对是一场噩梦。正如我之前所说,修改任何东西都需要很长时间,即使我们大幅改进了我们的机器,我们也没有得到好的结果。在构建工作流模板中从 VS2010 升级到 VS2012 有点问题,该模板包含版本化命名空间,必须清理这些命名空间才能与 VS2010 一起使用。有关迁移问题的更多信息,请访问 Jason Prickett 的博客。
Steve I agree with you. I've been using workflows for build definitions for a while and VS2010 loads them extremely slow. Furthermore, when I make any modification or save the file, it takes over 15 seconds to modify and over 40 to save and I'm running them in a pretty good machine. It would be interesting to know whether this issue has been solved in VS2012 or not. Anyone has tested it?
--
UPDATE [01/02/2013]:
All this issues have been sorted out with the new versión of Microsoft Visual Studio 2012
Build process workflow templates and Visual Studio 2010 was an absolutely nightmare. As I said before it takes ages to modify anything and even tough we improved considerably our machines we did not get good results. The upgrade from VS2010 to VS2012 in build workflow templates is bit problematic, the template contains versioned namespaces which must be cleaned up in order to be used with VS2010. For further information about migrating issues visit Jason Prickett's blog.