TFS:获取最新原因导致项目重新加载缓慢 [英] TFS: Get latest causes slow project reloading

查看:14
本文介绍了TFS:获取最新原因导致项目重新加载缓慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用的解决方案包含多个项目,这些项目引用了其他解决方案中的 NuGet 包.

We're working with a solution which has multiple projects which references NuGet packages from other solutions.

每次我们从解决方案上的 TFS 服务器获取最新信息时,Visual Studio (2015) 都会开始重新加载解决方案中的每个项目,这需要很长时间.现在情况并非总是如此,因为这种情况是在几周前开始发生的(解决方案已经使用了一年).

Every time we do get latest from the TFS server on the solution, Visual Studio (2015) starts reloading each project in the solution which takes a really long time. Now this wasn't always the case, since this started happening only a few weeks back (the solution is a year old).

我们有其他解决方案已经遇到了这个问题,我们的解决方案是关闭解决方案,然后获取最新版本,然后重新加载项目,这会快得多.

We have other solutions which were already experiencing this problem and our solution is to close the solution, then do get latest, then reload the project which is much, much faster.

谁能解释为什么会发生这种情况以及如何解决这个问题?

Can anybody explain why this is happening and how to fix this issue?

推荐答案

这已作为错误报告给 MSFT,请参阅 缓慢的项目重新加载 &调用 TFS 以获取最新变更集后重新加载项目很慢.您的项目文件似乎是从 VS 外部更新的,这会导致 VS 加载所有这些文件.更多细节请看VS IDE团队的回复:

This has been reported as a bug to MSFT, see Slow project reloading & Reload of projects is slow after call to TFS to get latest changeset. It seems your project files are updated from outside VS, which causes VS to load all them. More details please see the reply from VS IDE team:

罪魁祸首是,您的项目文件正在从外部更新VS这会导致VS逐个加载.这是极其繁重的过程,它发生在主 UI 线程上.因此,默认情况下,此 ASL 逻辑处于开启状态以缓解无响应的解决方案负载.本质上,您指出了我们 ASL 逻辑中的一个限制我们没有考虑过.这将被考虑为未来发布,谢谢.

Main culprit is, your project files are being updated from outside VS, which causes VS to load each of them one by one. This is extremely taxing process and it happens on the main UI thread. Hence, this ASL logic is on-by-default to alleviate unresponsive solution loads. Essentially, you’re pointing out a limitation in our ASL logic that we hadn’t considered. This will be considered for a future release, thank you.

与此同时,缓解问题的一种方法是强制通过触摸解决方案文件重新加载解决方案,*.sln 文件,其中会触发 ASL 开始,基本上 VS 认为你已经完成了解决方案负载,它将尽可能优化响应时间可能.

In the meantime, one way to mitigate the problem would be to force solution reload by touching the solution file, the *.sln file, which will trigger ASL to kick in, basically VS thinking you’re doing full solution load and it will optimize responsiveness time as much as possible.

Ulzii Luvsanbat

Visual Studio IDE 团队

Visual Studio IDE Team

这篇关于TFS:获取最新原因导致项目重新加载缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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