The view 'Index' or its master was not found

前端 未结 9 1437
南方客
南方客 2020-12-03 16:03

I\'m new to the C# MVC project type and when I created an empty C# MVC project, I noticed the following error:

The view \'Index\' or its master was not found         


        
9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 16:35

    I've had this problem a few times before and it can be any of the other answers, but it can also be the Build Action that is causing the issue.

    If you right click on the .cshtml/.vbhtml file that you are having a problem with, select Properties, and in the properties window set the Build Action to Content then this can be a solution to your problem.

提交回复
热议问题