“您是否缺少 using 指令或程序集引用?”但命名空间和引用是正确的

发布于 2024-09-26 21:28:41 字数 205 浏览 0 评论 0原文

我在构建项目时遇到以下错误。

找不到类型或命名空间名称“OvuMenu”(您是否缺少 using 指令或程序集引用?)

但我在代码中添加了 using 和对 dll 的引用。 它是一个 WPF 应用程序,存在 3 个项目。

我检查了参考资料,当我将 using 指令放入页面时,甚至智能感知也能工作。

谢谢,

菲利普

I've got the following error when builing my project.

The type or namespace name 'OvuMenu' could not be found (are you missing a using directive or an assembly reference?)

But I have put a using in my code and a reference to the dll.
It is a WPF application that exists of 3 projects.

I checked the references, even intellisense works when I put the using directive in the page.

thanks,

Filip

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

扎心 2024-10-03 21:28:41

使用“.net 4.0 Framework”而不是“.net 4.0 Framework client profile”是解决方案。

菲利普

using '.net 4.0 Framework' instead of '.net 4.0 framework client profile' is the solution.

Filip

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