开发者

How to speed up compilation of 30+ languages ASP.NET Web Site in VS.NET 2010?

Recently, I added a massive amount of new languages (as RESX files) to an ASP.NET Web Site project in VS.NET 2010.

The project has approximately 50 ASPX pages and did build rather fast, before I added the languages.

Since the languages were added the compiler takes several minutes (well, at least 1-2) until the browser sees a page.

Now I'm currently investigating, whether I could speed up compilation time inside my development environment. I can think of:

  • Leaving out the RESX files in VS.NET and copy them from another, external folder, when deploying to the web server, only.
  • Change the project type from Web Site to Web Application.

My question:

Can开发者_如何转开发 you give me some advices on how you would improve development speed of a large multi-language website in ASP.NET 4.0?


Put your resources in a precompiled assembly. This should significantly cut down your dynamic compile times, which is the default behavior for ASP.NET.

In the development environment, it would only recompile that assembly when there were changes which would obviously necessitate a rebuild of the assembly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜