How to precompile views in ASP.NET Core 2.0?

前端 未结 2 749
余生分开走
余生分开走 2021-02-19 11:21

I set up my solution according to this article. I left out some of the things because according to this, ASP.NET Core 2.0 precompiles views by default. In the end, I publish it

2条回答
  •  旧巷少年郎
    2021-02-19 12:11

    I usually just add these to the .csproj. No need to copy files or any of that mess.

        
           netcoreapp2.2true
           true
        
    
        
            ...
               
        
    

提交回复
热议问题