什么是Visual Studio项目引用? [英] What are Visual Studio project references?

查看:266
本文介绍了什么是Visual Studio项目引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了项目的框架和引用"选项卡,并注意到可以向项目添加新引用...",这是什么功能?

I came across the Framework and References tab of my project and noticed that I can "Add New Reference..." to my project, what is this functionality?

推荐答案

参考文献用于将其他库提取到您的项目中.例如,当您创建Windows项目时,将使用Windows窗体,XML解析器,套接字库以及许多其他有用的东西.现在,您可以从头开始创建所有这些文件,但这将是一项疯狂的工作.相反,您可以使用预先构建的库,例如System.Windows.Forms(所有表单材料),System.Xml(XML解析器材料)等.

References are used to pull additional libraries into your project. For example, when you're creating a Windows project, you'll be using Windows forms, XML parsers, socket libraries, and lots of other useful stuff. Now, you could create all these from scratch, but that would be an insane undertaking. Instead, you can use libraries which have been pre-built, such as System.Windows.Forms (all the form stuff), System.Xml (XML parser stuff) and others.

在较低级别上,这些都是由Microsoft预编译并与Visual Studio一起分发的DLL文件.添加参考允许您将其中的新项添加到项目中,例如,用于3D的Managed DirectX并不是很常用,因此必须手动将其添加到项目中.

Down at the low level, these are all DLL files precompiled by Microsoft and distributed along with Visual Studio. Add Reference allows you to add new ones of these to your project, for example, Managed DirectX for 3D isn't something which is commonly used, so must be manually added to a project.

我也刚刚注意到了C ++标记,所以这听起来似乎很光顾(因为我可能把问题的范围弄错了),在这种情况下,我并不是故意的.对于C ++,它将用于C ++/CLI,这是Microsoft允许C ++使用.NET框架的尝试.

I've also just noticed the C++ tag on this, so this may actually sound very patronising (as I may have gotten the scope of the question wrong), in which case, I didn't mean it. For C++, it will be used for C++/CLI, which is Microsoft's attempt to allow C++ to use the .NET framework.

这篇关于什么是Visual Studio项目引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆