Open the properties of the view file (.cshtml) and make sure you select "Content" for build action. The view isn't published when "None" is selected.