asp.net-core - 如何修复:在 asp core 2.1 中找不到 IndexModel
问题描述
我有一个带有 asp core 2.1 的 Razor Page 应用程序。一年前它工作得很好。今天我打开它并尝试构建它。它给了我这些错误
在 andex.cshtml.g.cs
public IndexModel Model => ViewData.Model;
解决方案
推荐阅读
- javascript - 如何根据日期对JavaScript中的对象进行排序
- stata - 用现有观测值的相等部分填充缺失的观测值(Stata)
- java - 如果条件为真,如何使用 for 循环始终将字符串更改为另一个字符串和数组中的另一个字符串
- node.js - 使用模块 es6 运行 TypeScript Mocha
- java - 在使用 mongoimport 将 csv 文件导入 mongodb 时,有没有可能动态插入某些字段的方法?
- asp.net-mvc - 如何默认设置身份页面,登录后如何重定向到特定页面
- java - Java中String类型的问题
- html - 我如何使用 var btn1 onclick change css 创建一个 jquery 脚本
- spring - Spring Rest API URL 映射问题
- c++ - 谁能检查并修复我的矢量问题