asp.net-mvc - 加速visual studio 2010构建asp.net mvc

标签 asp.net-mvc visual-studio build

现在,我们团队的 ASP.NET MVC 2.0 Web 项目需要大约 4 分钟来构建调试。我们的项目中包含以下内容:

  • t4MVC 模板
  • 编译所有构建的 asp.net mvc View

  • 我的工作电脑是
  • 英特尔酷睿 2 双核 T7250 @ 2.00 Mhz。
  • Windows 7 32 位终极版
  • 4 GB 内存

  • 在我的桌面上,我也得到了相同的构建时间
  • Intel core 2 Duo E6550 Conroe 2.33GHz
  • 6GB 内存
  • ocz ssd 驱动器

  • 我看不出我的台式机和笔记本电脑有什么区别?我猜它受CPU限制?我可能需要升级我的盒子?

    我确实将它设置为 false,构建时间从现在之前的 3 分钟缩短到了 5 秒。
     <MvcBuildViews>false</MvcBuildViews>
    

    我相信问题在于编译 asp.net mvc View 。我仍然需要看看为什么需要这么长时间?

    最佳答案

    您是否尝试过使用 msbuild 而不是从 Visual Studio 构建项目?这可能会为您提供瓶颈所在的线索。

    也可以看看:

  • How to troubleshoot long builds in Visual Studio?
  • Very long build time in Visual Studio.
  • 关于asp.net-mvc - 加速visual studio 2010构建asp.net mvc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3959076/

    相关文章:

    asp.net-mvc - 是否可以为所有 Controller 全局设置[Authorize]属性?

    c# - ASP.NET MVC : Requested registry access denied when creating performance counters

    windows - 在 Visual Studio 项目中,是否可以跨多个配置/平台设置用户宏?

    c++ - 为什么我在 Visual Studio 的 OpenCV 项目中使用/MT 时仍然需要 dll?

    c# - 从 C# 创建 Angular build(ng build)

    android - 1.12版后如何在Flutter中禁用Proguard?

    c# - IIS默认80端口中的RDLC报告查看问题

    asp.net-mvc - VSTS MSDeploy 深层嵌套路径

    c# - 尝试创建HttpWebRequest时,System.dll中发生了 'System.UriFormatException'类型的未处理异常

    java - Maven 配置文件和 Artifact 版本