Is there a way to reduce the build time when using

2019-08-09 19:59发布

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.

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

1条回答
何必那么认真
2楼-- · 2019-08-09 20:40

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.

查看更多
登录 后发表回答