Visual Studio MVC3 强类型视图显示一切
我有这个非常奇怪的问题。当我尝试创建强类型视图时,我得到了很多与项目无关的类。我尝试清理解决方案并重建。
这是一个屏幕截图:
I have this really strange problem. When I try to create a strongly typed view, I get really alot of classes that have nothing to do with the project. I tried to clean the solution and rebuild.
here is a screenshot:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想知道为什么人们在这种情况下如此担心 IDE 支持。众所周知,ASP.NET MVC是一项新技术,而IDE的支持,怎么说呢,还很不理想。我的意思是,这真的让你烦恼吗?您不能仅将视图模型的命名空间和类名称复制粘贴到此文本框中吗?我确信 Microsoft 将在该框架的未来版本中做得更好,以改进 Visual Studio 中的工具支持(即使我个人真的不在乎,因为我从不依赖工具支持)。
我知道我没有回答你的问题,对此我深表歉意。但是,来吧,这不是世界末日。让我们专注于解决一些现实世界的应用程序问题,然后继续。
I wonder why people worry so much about IDE support in such situations. It is well known that ASP.NET MVC is a new technology and IDE support is, how to put it gently, far from ideal. I mean, is it really so annoying to you? Can't you just copy-paste the namespace and class name of the view model in this textbox? I am sure Microsoft will do better job in future releases of the framework to improve tooling support in Visual Studio (even if personally I really don't give a damn as I never rely on tooling support).
I know I am not answering your question and I apologize for this. But, come on, it's not the end of the world. Let's focus on solving some real world application problems and move on.