Link to home
Start Free TrialLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

Add an assembly to the GAC.

I'm want to add assembly to the GAC.  I did this:

Added a setup project to my solution.  Create the GAC folder.  Signed my Assembly.  Added my Assembly to the GAC folder.  Built the setup.  Ran the setup on the target machine.

Now, my DLL has a dependency on a third party DLL.  After I run the setup, I see the third party DLL but I do not see mine.   if I try to uninstall the third party DLL from the GAC, I get error message about it being required by other applications.  That makes sense if my DLL was installed.  

Why can I not see my DLL?  Does the signing change the name by which I recognize it?  What could be wrong? What name is used in the GAC, based on my Project?  
Avatar of f_o_o_k_y
f_o_o_k_y
Flag of Poland image

Did you use that step to add dll to GAC or something different?

 in the File System tab of
the VS Setup project, right click on left pane, Add Special Folder and
select Global Assembly Cache Folder and add your dll there.


Best Regrads
 Fooky
Avatar of HLRosenberger

ASKER

That's what I did, as you described.   So, why do I not see my DLL in the GAC when I view it with Explorer?
Try sorting your assembly by publikkey

You can also try using .netConfiguration tool to look for dependencies

http://msdn.microsoft.com/en-us/library/ms973843.aspx

try using gacutil to install manually your dll and try to find it in folder.
I sorted the GAC in explorer by Public Key and looked for the key for my assembly, but It's not there.  Is there possibly a step I missed in creating the Setup.exe?
ASKER CERTIFIED SOLUTION
Avatar of f_o_o_k_y
f_o_o_k_y
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The answer is that there are two GAC's - one for CLR 2.0 and one for CLR 4.0.
I've requested that this question be closed as follows:

Accepted answer: 0 points for HLRosenberger's comment http:/Q_27377193.html#36905959

for the following reason:

This is the correct answer
Hello,
HLRosenberger I disagree with your request to close this question.
My answer  #36905894 was correct.

I need to send my objections and request for Community Support for Moderator review.

Best Regards
Fooky
You are correct.  I missed his last post.  Please award his the point.  

My apologies to f_o_o_k_y.
Thanks