HLRosenberger
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?
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?
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.
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.
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The answer is that there are two GAC's - one for CLR 2.0 and one for CLR 4.0.
ASKER
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
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
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
ASKER
You are correct. I missed his last post. Please award his the point.
My apologies to f_o_o_k_y.
My apologies to f_o_o_k_y.
ASKER
Thanks
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