[英]Scaffolding not working in Visual Studio 2022 .NET 6 Core
I could not get the reflection type for this LoginViewModel:我无法获得此 LoginViewModel 的反射类型:
public class LoginViewModel
{
public string Email { get; set; }
public string Password { get; set; }
}
Scaffolding forced me to choose the context, but "LoginViewModel" is not listed in contexts:脚手架迫使我选择上下文,但上下文中没有列出“LoginViewModel”:
This is the error I get:这是我得到的错误:
How do I solve this?我该如何解决这个问题?
This is often caused by a mismatch of versions.这通常是由版本不匹配引起的。 Check your Nuget packages.
检查您的 Nuget 包。 Refer to this question: asp.net mvc core The call is ambiguous between the following methods or properties:
参考这个问题: asp.net mvc core 调用在以下方法或属性之间有歧义:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.