[英]I can't add a using reference on my C# application
I'm using Visual Studio 2010 Beta2 and I can't add a reference to: system.drawing 我正在使用Visual Studio 2010 Beta2,无法添加对以下文件的引用: system.drawing
I've tried right click on the solution explorer but I can't find it there. 我尝试在解决方案资源管理器上单击鼠标右键,但在那里找不到它。
What gives? 是什么赋予了?
Here is all you need to do in VS 2010: 这是您在VS 2010中需要做的所有事情:
Solution Explorer
right click on the References
folder of your project Solution Explorer
右键单击项目的“ References
文件夹 Add Reference
. Add Reference
。 Assemblies
category there is a sub category of Framework
. Assemblies
类别下,有一个“ Framework
子类别。 If that is selected you should see a list of all of the Microsoft .NET Framework libraries System.Drawing
and double click it. System.Drawing
并双击它。 Then your project will have the reference added to it! 然后,您的项目将添加参考!
In VS2010 Beta 2 the references list may not be automatically sorted because it loads asynchronously. 在VS2010 Beta 2中,引用列表可能不会自动排序,因为它是异步加载的。 You may need to wait for it to finish loading then click the column header to sort.
您可能需要等待它完成加载,然后单击列标题进行排序。
Solution explorer is for adding references to external libraries. 解决方案资源管理器用于向外部库添加引用。
It sounds like you just want to add the line 听起来您只想添加行
using System.Drawing;
to the top of one particular file. 到一个特定文件的顶部。
I have in VS2010 a class library and a console app, is possible add reference in console but arent possible add [using .....] pointed in comment above, in library there is public class whith public methods. 我在VS2010中有一个类库和一个控制台应用程序,可以在控制台中添加引用,但不能添加以上使用注释中指出的[using .....],在库中有公共类和公共方法。
Why can't I reference my class library? 为什么我不能引用我的班级图书馆?
Thanks 谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.