是否可以有选择地禁止将软件包加载到VS2010中? [英] Can I selectively disable packages from loading into VS2010?

查看:84
本文介绍了是否可以有选择地禁止将软件包加载到VS2010中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自以下问题的继续问题: VS2010加载缓慢.我可以配置扩展的相应启动时间吗?

Continuation question from: VS2010 loads slowly. Can I profile extensions' respective startup time?

查看日志文件后,发现有一些我使用不多的软件包(我认为):

After looking at the log file, it turns out there are a few packages that I'm not using much (I think):

  • (加载时间)(包):

  • (load time) (package):

(2s)(Microsoft.VisualStudio.TeamArchitect.DesignersCommon.DesignersCommonPackage,Microsoft.VisualStudio.TeamArchitect.DesignersCommonPackage,版本= 10.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a)

(2s) (Microsoft.VisualStudio.TeamArchitect.DesignersCommon.DesignersCommonPackage, Microsoft.VisualStudio.TeamArchitect.DesignersCommonPackage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)

和一个非常奇怪的查询,耗时3.7s:

and one very strange query that takes 3.7s:

调用ReleaseService :: Search 条款: (Project.Metadata ['VsixId'] = '4d4b29b7-971b-4ff2-8604-cf9f67fbb705') 和 (((Project.Metadata ['SupportedVSEditions'] 如'%10.0,IntegratedShell;%')或 (Project.Metadata ['SupportedVSEditions'] 像'%10.0,Pro;%')或 (Project.Metadata ['SupportedVSEditions'] 像'%10.0,Premium;%')或 (Project.Metadata ['SupportedVSEditions'] 就像'%10.0,Ultimate;%')) orderByClause:跳过:获取:

Calling ReleaseService::Search whereClause : (Project.Metadata['VsixId'] = '4d4b29b7-971b-4ff2-8604-cf9f67fbb705') AND ((Project.Metadata['SupportedVSEditions'] LIKE '%10.0,IntegratedShell;%') OR (Project.Metadata['SupportedVSEditions'] LIKE '%10.0,Pro;%') OR (Project.Metadata['SupportedVSEditions'] LIKE '%10.0,Premium;%') OR (Project.Metadata['SupportedVSEditions'] LIKE '%10.0,Ultimate;%')) orderByClause : skip : take :

您有什么想法可以减少他们的时间吗?我是否可以选择仅在需要时才加载这些软件包?

Do you have any ideas how to reduce their times? Is there a location where I can selectively choose these packages to be loaded only when required?

推荐答案

您有什么想法可以减少他们的时间吗?

Do you have any ideas how to reduce their times?

有一种可以在不禁用软件包的情况下缩短加载时间的方法.这是加快程序加载速度的通用方法,但是您需要安装SSD.

There is a way to improve load times without disabling the packages. This is universal way of speeding up program load but you need to have an SSD.

1)找出启动过程中受害最严重的文件夹. SysInternals的ProcessMonitor可以将其可视化.在VS 2010中,我盒子上的这些文件夹是:

1) Find out what folders are being hit most heavily during startup. ProcessMonitor from SysInternals can visualize it. In VS 2010 case these folders on my box were:

C:\ Program Files(x86)\ Microsoft Visual Studio 10.0 \ Common7 \ Ide \ C:\ Users \\ AppData \ Local \ Microsoft \ VisualStudio \ 10.0 \ Extensions

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Ide\ C:\Users\\AppData\Local\Microsoft\VisualStudio\10.0\Extensions

2)将此文件夹移动到SSD.

2) Move this folders to SSD.

3)从旧文件夹位置到新文件夹创建NTFS Junction: mklink/J (mklink不是.exe,它是cmd.exe中内置的命令)

3) Create NTFS Junction from old folder location to the new one: mklink /J (mklink is not an .exe - it's a command build-in into cmd.exe)

此外,您也可以尝试从工具/扩展程序"中禁用软件包.但是根据我的经验,只有跳过所有扩展,VS的启动时间才能改善.恕我直言,它是工作室扩展引擎,需要花费很多时间才能启动,并且会减慢工作室的启动速度,而不是扩展.

Also you could try to disable packages from Tools/Extensions. But from my experience VS start up time improves only if you skip all extensions. IMHO it's studio extension engine that takes a lot of time to start and slows the studio startup, not the extensions.

这篇关于是否可以有选择地禁止将软件包加载到VS2010中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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