Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
i do have assembly named MyNamespace.Shared.Library.dll in GAC folder.

I want to use it in my managed c++ code.which i did it two ways.

case 1
#using <C:\Windows\Microsoft.NET\assembly\GAC_MSIL\MyNameSpace.Shared.Library\v4.0_3.0.0.0__97f06817abd0bb0a\MyNameSpace.Shared.Library.dll


Now if i uses it working fine.but i dont want to do it in this way.

Case 2:
open Project properties tab

open Configuration properties -> General

Select Resolving #using references

here i give the complete path of the dll.
But in this case i am not able to use its namespace.
compiler generate error for not finding namespace or fucntion which i am using.
Note: in both the case code is same but using reference has been changed and i am writing this code in VS 2010
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900