如何在VS2010 IDE中添加System.ComponentModel.Composition.dll? [英] How to add System.ComponentModel.Composition.dll in VS2010 IDE?

查看:140
本文介绍了如何在VS2010 IDE中添加System.ComponentModel.Composition.dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在命令行中,我使用/r:如下添加VS2010的引用.

With command line, I use /r: to add reference with VS2010 as follows.

csc Program.cs /r:System.ComponentModel.Composition.dll /r:SharedLibrary.dll

如何在VS2010 IDE中添加引用?

How can I add reference in VS2010 IDE?

我试图右键单击解决方案资源管理器,然后单击添加引用...",但是找不到System.ComponentModel.Composition.

I tried to right click on the Solution Explorer, then clicked "Add Reference ...", but I can't find the System.ComponentModel.Composition.

推荐答案

The Add Reference Dialog from the Productivity Power Tools is filtering for 3.5 framework assemblies because you're application is undoubtedly targeting 3.5.

System.ComponentModel.Composition.dll是一个4.0 Framework dll.您可以通过浏览到4.0 framework文件夹来添加引用,但这将阻止您的应用程序编译.

The System.ComponentModel.Composition.dll is a 4.0 Framework dll. You can add the reference by browsing to the 4.0 framework folder but this will stop your application from compiling.

如果要使用4.0功能,应该将应用程序的目标更改为4.0

Instead you should change the target of your application to 4.0 if you want to use 4.0 features

这篇关于如何在VS2010 IDE中添加System.ComponentModel.Composition.dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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