Visual Studio 2010非常慢

时间:2011-09-25 09:44:32

标签: performance visual-studio-2010

Core I7 + 16gb ram + raid 0 stripping + win7 ultimate 64bit

当我使用Visual Studio 2010最终32位编译我的Web项目时,它需要很长时间(总构建时间!!!)并且通常在我将某些内容更改为ASPX代码时附加。

编译单个项目非常快,但在编译之后,需要花费大量时间来完成整个过程。

有什么建议吗?

ps我已经尝试禁用防病毒软件和智能手机

Build Summary
-------------
00:00.561 - Success - Debug Any CPU - CodcastWeb.Infrastructure.Data\CodcastWeb.Infrastructure.Data.csproj
00:00.546 - Success - Debug Any CPU - CodcastWeb.Web.Client\CodcastWeb.Web.Client.csproj
00:00.196 - Success - Debug Any CPU - CodcastWeb.Database\CodcastWeb.Database.dbproj
00:00.174 - Success - Debug Any CPU - CodcastWeb.Web.Client.Tests\CodcastWeb.Web.Client.Tests.csproj
00:00.097 - Success - Debug Any CPU - CodcastWeb.Application\CodcastWeb.Application.csproj
00:00.092 - Success - Debug Any CPU - CodcastWeb.Infrastructure.CrossCutting\CodcastWeb.Infrastructure.CrossCutting.csproj
00:00.085 - Success - Debug Any CPU - CodcastWeb.Application.DTOs\CodcastWeb.Application.DTOs.csproj
00:00.081 - Success - Debug Any CPU - CodcastWeb.Application.Tests\CodcastWeb.Application.Tests.csproj
00:00.077 - Success - Debug Any CPU - CodcastWeb.Domain\CodcastWeb.Domain.csproj
00:00.034 - Success - Debug Any CPU - CodcastWeb.DistributedServices\CodcastWeb.DistributedServices.csproj
00:00.013 - Success - Debug Any CPU - CodcastWeb.Modeling\CodcastWeb.Modeling.modelproj

Total build time: 06:27.796

========== Build: 11 succeeded or up-to-date, 0 failed, 0 skipped ==========

2 个答案:

答案 0 :(得分:0)

您的项目是“网站”还是“Web应用程序”,因为前者比后者需要更长的时间来编译(因为编译器单独浏览每个文件,网站的文件越多,速度越慢)。

检查文件大小,是否有任何依赖项(例如来自其他项目或库的输出)被复制到必须移动的输出bin目录,因为这可能附加了被复制的资源 - 因此减速是文件复制操作。

查看您的构建输出,是否有任何遗漏?每个项目需要几秒钟,所以不确定6小时总计来自哪里。它似乎只是挂在最后一项之后?在这种情况下,听起来像Visual Studio将从重新安装中受益。

答案 1 :(得分:0)

如果您的建模项目中有层图,则可能需要很长时间才能进行验证。尝试暂时从解决方案中删除模型项目并重新编译,以测试这是否是减速的来源。