VS2008 编译器未找到 MVC2 Annotations dll,如何使其看起来在正确的位置?
我有 VS2008 SP1 与 .NET 3.5 SP1 一起运行
我有 MVC2 正在运行(MVC1 已卸载)
一切正常,除了当我调用 System.Components.DatAnnotations.dll 时,编译器抱怨无法找到它。
消息是:
无法加载文件或程序集“System.ComponentModel.DataAnnotations,Version=99.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。系统找不到指定的文件。
我尝试修复并重新安装 VS 和 .Net Framework 的 SP1。 我还尝试通过在“程序”目录中的“引用程序集”中浏览到该程序集来引用该程序集。
我已经尝试了大部分谷歌搜索结果论坛结果,但无济于事,我认为这可能是我忽略的一些简单的东西。
有什么想法吗?
I have VS2008 SP1 running with .NET 3.5 SP1
I have MVC2 running (with MVC1 uninstalled)
All works ok except when I call the System.Components.DatAnnotations.dll, then the compiler complains of not being able to find it.
Message is:
Could not load file or assembly 'System.ComponentModel.DataAnnotations, Version=99.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I tried repairing and reinstalling SP1 of both VS and .Net framework.
I also tried referencing the assembly by browsing to it in the Reference assemblies in Programs directory.
I have tried out most of the Google search result forum results but to no avail, I think it may be something simple which I have over looked.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该在记事本中打开 .csproj 文件并在其中正确引用路径
You should open your .csproj file in notepad and correct reference path there