How to add System.ComponentModel.Composition.dll in VS2010 IDE?

℡╲_俬逩灬. 提交于 2019-12-23 18:11:51

问题


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

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

How can I add reference in VS2010 IDE?

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


回答1:


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.

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.

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



来源:https://stackoverflow.com/questions/6309340/how-to-add-system-componentmodel-composition-dll-in-vs2010-ide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!