Visual Studio 2010运行缓慢

3

核心i7 + 16GB内存 + RAID 0加速 + Win7 Ultimate 64位。

当我使用Visual Studio 2010 ultimate 32bit编译我的Web项目时,需要很长时间(总编译时间!),并且通常在我更改ASPX代码时才会出现。

编译单个项目非常快,但是编译后,完成整个过程需要很长时间。

有什么建议吗?

附:我已经尝试禁用防病毒软件和Intellitrace。

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 ==========

你为什么撤销了Felix的编辑? - fvu
2个回答

0
你的项目是“网站”还是“Web应用程序”,因为前者编译时间比后者长得多(因为编译器逐个处理每个文件,文件越多,速度越慢)。
检查文件大小,是否有任何依赖项(例如来自另一个项目或库的输出)正在被复制到输出bin目录中,必须移动,因为这可能附带资源正在被复制 - 因此减速是文件复制操作。
查看您的构建输出,是否有任何缺失?每个项目需要几秒钟,所以不确定6小时总共来自哪里。它似乎只是在最后一项之后挂起?如果是这样,那么重新安装Visual Studio会有好处。

0

如果您的建模项目中有层次结构图,它们可能需要很长时间来验证。尝试暂时从解决方案中移除该模型项目并重新编译,以测试是否是减速的源头。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接