gac

Log4Net and GAC - How to reference Configuration Files?

不问归期 提交于 2019-12-02 18:18:39
问题 I am using log4net during my development, as as part of a project constraint, I now need to add it to the Global Assembly Cache. The logging definitions are in a file Log4Net.xml. That file is referenced in my assemblyinfo as: [assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log4Net.xml", Watch = true)]. So long as the xml file was in the same directory as the log4net.dll, everything has been working fine. However now that I've added log4net to the GAC, it is no longer picking up the

How do I force an assembly to uninstall from the GAC?

折月煮酒 提交于 2019-12-02 11:50:38
问题 I've developed a simple installation package using WiX that installs an assembly called WBRT.Configuration into the Global Assembly Cache (GAC). While the file installs, it is not removed when the package is uninstalled. I've tried running a command prompt as administrator, used msiexec /x specifying the msi filename and msiexec /x specifying the product code. With the /l*v switch, there is no error: Executing op: ActionStart(Name=MsiUnpublishAssemblies,Description=Unpublishing assembly

Oracle.DataAccess.dll not shown in explorer although it is installed in GAC

ε祈祈猫儿з 提交于 2019-12-02 07:59:46
Does anybody know why my Oracle.DataAccess.dll Version 4 assemblies are not shown in explorer view. It is installed in GAC and working without any problems. gacutil shows it as expected. C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>gacutil /l Oracle Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.18020 Copyright (c) Microsoft Corporation. All rights reserved. The Global Assembly Cache contains the following assemblies: Number of items = 0 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>gacutil /l Oracle.DataAccess Microsoft (R) .NET Global Assembly Cache

How do I force an assembly to uninstall from the GAC?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 07:05:47
I've developed a simple installation package using WiX that installs an assembly called WBRT.Configuration into the Global Assembly Cache (GAC). While the file installs, it is not removed when the package is uninstalled. I've tried running a command prompt as administrator, used msiexec /x specifying the msi filename and msiexec /x specifying the product code. With the /l*v switch, there is no error: Executing op: ActionStart(Name=MsiUnpublishAssemblies,Description=Unpublishing assembly information,Template=Application Context:[1], Assembly Name:[2]) Executing op: AssemblyUnpublish(,

List all DLL's implementing a specific interface from the GAC

元气小坏坏 提交于 2019-12-02 04:22:16
问题 Aloha Given a plug-in architecture (C# / .NET 3.5) with the plug-ins stored in the GAC, how can I list/load all dll's that contain types that implement my specific interface? In other words, I'd like to investigate which plug-ins for my application are installed on a machine, by looking in the GAC. -Edoode 回答1: First a little clarification: a DLL cannot implement an interface. The DLL contains types that could implement a specific interface. Here's a .NET wrapper around fusion.dll that allows

Updating a DLL in the GAC

时光毁灭记忆、已成空白 提交于 2019-12-02 00:47:51
I have an API DLL that several third party applications reference. Some of these applications want things two ways in terms of updates. 1) I want the latest stuff 2) Don't update my direct binaries that often There has been the thought of moving the DLL into the GAC and writing another DLL that is simply the wrapper for the DLL in the GAC (which the 3rd party apps would then reference). This allows the business logic (the part that would change frequently) to be updated in the GAC and the wrapper DLL would only need to be updated when new functions were made available. The GAC is intended to

List all DLL's implementing a specific interface from the GAC

十年热恋 提交于 2019-12-02 00:35:49
Aloha Given a plug-in architecture (C# / .NET 3.5) with the plug-ins stored in the GAC, how can I list/load all dll's that contain types that implement my specific interface? In other words, I'd like to investigate which plug-ins for my application are installed on a machine, by looking in the GAC. -Edoode First a little clarification: a DLL cannot implement an interface. The DLL contains types that could implement a specific interface. Here's a .NET wrapper around fusion.dll that allows you to enumerate all the assemblies in the GAC. Once you have loaded the assembly with Assembly.Load you

Querying the x64-GAC

帅比萌擦擦* 提交于 2019-12-01 22:18:49
With the following code I'm querying the GAC to see if there is a certain assembly installed i it. The code itself works fine, but I only get the result for the x86 GAC . The assembly is installed in both GACs GAC_64 and GAC_32. What do I have to do so that 'QueryAssemblyInfo' checks the x64 GAC? public bool IsInGac(string assemblyName) { ASSEMBLY_INFO assembyInfo = new ASSEMBLY_INFO(); assembyInfo.cchBuf = 512; assembyInfo.currentAssemblyPath = new string('\0', assembyInfo.cchBuf); IAssemblyCache assemblyCache = null; IntPtr hr = NativeMethods.CreateAssemblyCache(out assemblyCache, 0); if (hr

How to just load the latest version of dll from GAC

别来无恙 提交于 2019-12-01 18:58:32
问题 I've written a batch execution framework and in it I want (in some scenarios) to load an assembly from the GAC where there may be multiple versions but I just want to load the latest version . Is this even possible? TIA 回答1: Assembly.LoadWithPartialName(string) will do exactly what you want. 回答2: You should be able to use a publisher policy with a BindingRedirect. See this SO answer. 回答3: Linq to Gac can query the GAC. You can load assembly at runtime once you know what you want. 来源: https:/

How to just load the latest version of dll from GAC

戏子无情 提交于 2019-12-01 18:06:04
I've written a batch execution framework and in it I want (in some scenarios) to load an assembly from the GAC where there may be multiple versions but I just want to load the latest version . Is this even possible? TIA Assembly.LoadWithPartialName(string) will do exactly what you want. Mitch Wheat You should be able to use a publisher policy with a BindingRedirect. See this SO answer . Linq to Gac can query the GAC. You can load assembly at runtime once you know what you want. 来源: https://stackoverflow.com/questions/283419/how-to-just-load-the-latest-version-of-dll-from-gac