|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Add managed assemblies to GAC programmatically?Let's pretend I really really really don't like ClickOnce and I want to
implement my own updating process. Let's also say that I want the update process to be able to add new assemblies to the GAC. Since gacutil.exe no longer comes with the .NET framework by default, I can't simply shell out to it, so I was wondering if there is a way to add assemblies to the GAC via managed code. Please note that I'm not talking about registering an assembly with COM or COM+. I know there are things out there like the RegistrationServices class and the System.EnterpriseServices namespace, but all the (admittedly few) things I've read about them suggest that they're oriented towards COM/COM+. Hello Jeff,
use GAC API, which is not documented http://support.microsoft.com/default.aspx?scid=kb;en-us;317540 --- WBR, Michael Nemtsev [.NET/C# MVP]. My blog: http://spaces.live.com/laflour Team blog: http://devkids.blogspot.com/ "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo JJ> Let's pretend I really really really don't like ClickOnce and I want JJ> to implement my own updating process. Let's also say that I want the JJ> update process to be able to add new assemblies to the GAC. Since JJ> gacutil.exe no longer comes with the .NET framework by default, I JJ> can't simply shell out to it, so I was wondering if there is a way JJ> to add assemblies to the GAC via managed code. JJ> JJ> Please note that I'm not talking about registering an assembly with JJ> COM or COM+. I know there are things out there like the JJ> RegistrationServices class and the System.EnterpriseServices JJ> namespace, but all the (admittedly few) things I've read about them JJ> suggest that they're oriented towards COM/COM+. JJ> "Michael Nemtsev" <nemt***@msn.com> wrote in message Thanks. I hate to sound clueless, but this API is COM-based, yes? Would I news:a279a63a3ed2d68c950d4e148f723@msnews.microsoft.com... > use GAC API, which is not documented > http://support.microsoft.com/default.aspx?scid=kb;en-us;317540 still be able to use it from a C# program? The sample code is C++. > "Michael Nemtsev" <nemt***@msn.com> wrote in message I'll be the first to admit I'd be a beginner in this area, but this link > news:a279a63a3ed2d68c950d4e148f723@msnews.microsoft.com... > >> use GAC API, which is not documented >> http://support.microsoft.com/default.aspx?scid=kb;en-us;317540 >> > Thanks. I hate to sound clueless, but this API is COM-based, yes? > Would I still be able to use it from a C# program? The sample code is > C++. looks like it might be of use http://blogs.msdn.com/junfeng/articles/229649.aspx -- Rory "Rory Becker" <RoryBecker@newsgroup.nospam> wrote in message Spectacular. Thanks.news:b0ac48a095698c950cc36df2450@msnews.microsoft.com... >> Thanks. I hate to sound clueless, but this API is COM-based, yes? >> Would I still be able to use it from a C# program? The sample code is >> C++. > > I'll be the first to admit I'd be a beginner in this area, but this link > looks like it might be of use > http://blogs.msdn.com/junfeng/articles/229649.aspx |
|||||||||||||||||||||||