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

前端 未结 4 1107
野趣味
野趣味 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:40

    On 3.1, I have tried all of the above with no .cshtml files appearing. Interesting, I do get .cs files copied across to publish folders. i.e. in my csproj, the first two work - the other does not

       
        
          Always
        
        
          Always
        
      
    
      
        
          Always
        
        
          Always
        
    

    If I manually copy the files, I am able to modify them with dynamic recompile occurring (as expected). Note: The .cshtml has no code behind files (long story).

    More suggestions?

提交回复
热议问题