SexyMF
SexyMF

Reputation: 11185

Razor making the build time longer

I have just switched from old-style to razor.
Since this point the compile time has become much slower, is there any thing I can do?

Thanks.

Upvotes: 1

Views: 88

Answers (1)

Paul Tyng
Paul Tyng

Reputation: 7584

A couple options:

  • Do you have MvcBuildViews in your project file set to true? You could set that to false if so and just compile at runtime.
  • You could pre-generate your Razor views using: Razor Generator (also on NuGet)

Upvotes: 0

Related Questions