Still trying to understand the GAC and SN better. In order for something to be in the GAC it has to be SN; I've learned how to do SN - pretty simple (at this point). I know the 'purpose' of the GAC is not to have to have a billion copies of the same dll on a targeted machine.
Besides this what are some of the advantages to the GAC? I don't know of any, but I'm sure there are some.
Is there ever a reason to SN an assembly and not put it in the GAC?
I've learned how to deploy something into the GAC (and I really think it's stupid that if you deploy to the GAC you also have to deploy to the Visual Studio folder so it shows up in in the Add References dialog - if it's the GAC, I think it should be there!), but I've encountered some things in VS2005 that yell at me that I can't use something because it's not registered... how are they checking this? Is there a namespace that allows you load things from the GAC without having a reference to it in your 'references'? How come I can't add the assembly manaully (CopyLocal = true rather than false) and get around this error?
I'm also trying to find some information (written in laymans terms - MSDN wasn't very helpful on this one) about when you 'Configure and Assembly' of the GAC...specifically what is the Binding Policy and Code Base tabs used for (in a real world example).
I've recently gotton thrown into the Configuration Management position on my team and I'm learning a lot by fire; things are slowing down so I'm trying to get on top of the ball. I recently deployed a library and strongly named it and the msi puts it in the GAC. So now I need to learn how to update it for when a fix is needed for some obscure bug is found (because they always have a way of coming out).
Thanks in advance for comments/links.
Besides this what are some of the advantages to the GAC? I don't know of any, but I'm sure there are some.
Is there ever a reason to SN an assembly and not put it in the GAC?
I've learned how to deploy something into the GAC (and I really think it's stupid that if you deploy to the GAC you also have to deploy to the Visual Studio folder so it shows up in in the Add References dialog - if it's the GAC, I think it should be there!), but I've encountered some things in VS2005 that yell at me that I can't use something because it's not registered... how are they checking this? Is there a namespace that allows you load things from the GAC without having a reference to it in your 'references'? How come I can't add the assembly manaully (CopyLocal = true rather than false) and get around this error?
I'm also trying to find some information (written in laymans terms - MSDN wasn't very helpful on this one) about when you 'Configure and Assembly' of the GAC...specifically what is the Binding Policy and Code Base tabs used for (in a real world example).
I've recently gotton thrown into the Configuration Management position on my team and I'm learning a lot by fire; things are slowing down so I'm trying to get on top of the ball. I recently deployed a library and strongly named it and the msi puts it in the GAC. So now I need to learn how to update it for when a fix is needed for some obscure bug is found (because they always have a way of coming out).
Thanks in advance for comments/links.