![](/img/trans.png)
[英]Compile errors when using C# 7 features in new VS Studio 2017 ASP.NET MVC 5.2.3 project
[英]VS 2019 - ASP.NET Core MVC web app (written in C#) : multiple errors on brand new project
使用 ASP.NET Core 5.0 MVC 的全新项目,编写于 C#。
查看任何 default.cshtml 页面时,错误列表 window 中出现多个错误。
但是,该项目仍然可以正常构建和运行。
错误包括:
- The name 'ViewData' does not exist in the current context.
- The name 'RenderBody' does not exist in the current context.
- The name 'await' does not exist in the current context.
- The name 'Context' does not exist in the current context.
- The namespace "ASP" already contains a definition for '_Page_Default_cshtml'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.