Make sure all *.cshtml files are set to be “Content” for Build Action

后端 未结 4 1645
谎友^
谎友^ 2021-02-01 15:28

A few times when I copy-paste *.cshtml files, Visual Studio for some reason sets Build Action on these files to be \"None\":

4条回答
  •  孤城傲影
    2021-02-01 15:44

    Thank you jessehouwing for geting me started! I liked your solution and voted for it. I had a little trouble with it and ended up with the following:

    
        
          
        
        
    
    

    Right before my tag in the csproj file.

提交回复
热议问题