Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

enter image description here

like image 699
prosseek Avatar asked Jan 28 '26 12:01

prosseek


1 Answers

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

like image 161
Conrad Frix Avatar answered Jan 30 '26 05:01

Conrad Frix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!