向 VS 2008 解决方案添加项目;产生依赖性;出现编译器错误 CS0246
这可能是我的一个非常基本的错误。我所做的如下:
- 在 Visual Studio 2008 中创建了一个新的 C# 智能设备项目。
- 向此解决方案添加了一个 C# 项目 (Bouncy Castle)。
- 创建了依赖项:我的智能设备项目依赖于
crypto
,即 Bouncy Castle 项目。 - 在我的项目中添加了一些
using
语句:
using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Crypto.Parameters; using Org.BouncyCastle.Security; using Org.BouncyCastle.Utilities.Encoders;
编译该项目给了我四个 CS0246 错误:
The type or namespace name 'Org' could not be found (are you missing a using directive or an assembly reference?)
我直接将 C# 代码拉入项目中,所以我不知道我错过了什么。
谢谢!
This is probably a very basic error on my part. Here's what I did:
- Created a new C# Smart Device Project in Visual Studio 2008.
- Added a C# project (Bouncy Castle) to this solution.
- Created a dependency: my Smart Device Project depends on
crypto
, the Bouncy Castle project. - Added some
using
statements to my project:
using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Crypto.Parameters; using Org.BouncyCastle.Security; using Org.BouncyCastle.Utilities.Encoders;
Compiling the project gives me four CS0246 errors:
The type or namespace name 'Org' could not be found (are you missing a using directive or an assembly reference?)
I pulled the C# code into the project directly, so I don't know what I'm missing.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有人这么说过。我不得不猜测这是问题的根源,您“添加了引用”。项目+添加参考。
Nobody ever says that. Which I'd have to guess is the source of the problem, you "add a reference". Project + Add Reference.