Views not being copied when publish the project in netcore 2.0 visual studio 2017

前端 未结 4 1108
野趣味
野趣味 2020-12-15 08:12

I have createa a ASP.NET Core 2.0 project in VS 2017. When I publish my project the Views folder are not there but the wwwroot folder is.

T

4条回答
  •  孤城傲影
    2020-12-15 08:41

    It might be generating .Views.dll by default. You need to set MvcRazorCompileOnPublishproperty false in your project .csproj file. By default it is true.

    
        netcoreapp2.1
        false    
    
    

提交回复
热议问题