首页 > 解决方案 > 如何修复:在 asp core 2.1 中找不到 IndexModel

问题描述

我有一个带有 asp core 2.1 的 Razor Page 应用程序。一年前它工作得很好。今天我打开它并尝试构建它。它给了我这些错误

在此处输入图像描述

在 andex.cshtml.g.cs

   public IndexModel Model => ViewData.Model;

标签: asp.net-corerazor

解决方案


推荐阅读