If you want your .cshtml to be precompiled before the first request hits, you need to enable it manually.
This increases time needed for compilation, however the compilation process still takes not much time at all.
Create a class that inherits from RazorPreCompileModule and override the EnablePreCompilation method.
Disabling generation for symbols is optional:
Reference it in your Startup.cs: