尝试在Visual Studio 2012中添加对项目的引用,“未找到任何项目" [英] Trying to add reference to project in Visual Studio 2012, "no items found"

查看:409
本文介绍了尝试在Visual Studio 2012中添加对项目的引用,“未找到任何项目"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Visual Studio 2012中向我的项目添加对System.dllSystem.drawing.dll的引用.我通过右键单击该项目,单击引用",然后单击添加新引用"来执行此操作. .

I'm trying to add a reference to System.dll and System.drawing.dll to my project in Visual Studio 2012. I'm doing this by right clicking the project, clicking "references", and then clicking "Add new reference".

以下屏幕似乎应该有很多选项,但对我来说,它只是说找不到项目".屏幕上显示我的目标框架是.NETFramework, Version=v4.0.

It seems like the following screen should have a lot of options, but for me it simply says "No Items Found". In the screen it says my targeted framework is .NETFramework, Version=v4.0.

要显示选项,我还需要做其他事情吗?

Is there anything else I need to be doing in order to make the options show up?

推荐答案

您需要在应用程序中启用CLR支持.您可以在项目的属性中执行此操作:Properties|General||Common Language Runtime Support: Common Language Runtime Support (/clr)

You need to enable CLR support in your application. You can do that in the properties of your project: Properties|General||Common Language Runtime Support: Common Language Runtime Support (/clr)

这篇关于尝试在Visual Studio 2012中添加对项目的引用,“未找到任何项目"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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