title: Make sure all *.cshtml files are set to be "Content" for Build Action
body: <p>A few times when I copy-paste <code>*.cshtml</code> files, Visual Studio for some reason sets <code>Build Action</code> on these files to be "None":
  <img src="https://i.stack.imgur.com/0XZEL.png" alt="Comments.cshtml is set to be &quot;None&quot; on Build Action"></p>
  
  <p>This is impossible to detect when you work locally, because the files are present. But when you deploy through WebDeploy, files marked as "None" on Build Action are not packaged. As a result I get non-working application on the server.</p>
  
  <p>Question: <strong>is there a way to automatically detect such occurrences and prevent?</strong></p>