VS2008 编译器未找到 MVC2 Annotations dll,如何使其看起来在正确的位置?

发布于 2024-08-29 07:07:06 字数 481 浏览 6 评论 0原文

我有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我的痛♀有谁懂 2024-09-05 07:07:06

您应该在记事本中打开 .csproj 文件并在其中正确引用路径

You should open your .csproj file in notepad and correct reference path there

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文