有没有使用编译ASP.NET MVC的意见时减少建造时间的方法吗? [英] Is there a way to reduce the build time when using compiled ASP.NET MVC views?

查看:138
本文介绍了有没有使用编译ASP.NET MVC的意见时减少建造时间的方法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经启用我们的ASP.NET MVC的意见编制。我知道这将添加到生成时间,但我不知道它将使编译20倍慢!我知道的原因可能是由于低效率的MSBuild或MVC SDK的错误,但我希望有东西的 <我们/ em>的可以做不同的,所以它不是这么慢得令人难以置信。

I've enabled the compiling of our ASP.NET MVC views. I knew this would add to the build time, but I had no idea it would make compilation 20 times slower! I realize that the reason could be due to inefficiency bugs in msbuild or the MVC SDK, but I'm hoping there's something we can do differently so it isn't so incredibly slow.

有任何你发现了什么花招来减少ASP.NET MVC剃刀享有编译时?

Have any of you found any tricks to reduce the compile time of ASP.NET MVC razor views?

推荐答案

试着这样做:<一href=\"http://blogs.msdn.com/b/davidebb/archive/2009/04/15/a-new-flag-to-optimize-asp-net-compilation-behavior.aspx\" rel=\"nofollow\">http://blogs.msdn.com/b/davidebb/archive/2009/04/15/a-new-flag-to-optimize-asp-net-compilation-behavior.aspx
虽然我必须承认,我从来没有试过这种对MVC视图precompilation。

Try doing this: http://blogs.msdn.com/b/davidebb/archive/2009/04/15/a-new-flag-to-optimize-asp-net-compilation-behavior.aspx Though I must admit I've never tried this for MVC view precompilation.

这篇关于有没有使用编译ASP.NET MVC的意见时减少建造时间的方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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