gacutil

GACUtil “Assembly successfully added to the cache” but “Number of items = 0”

﹥>﹥吖頭↗ 提交于 2020-01-13 07:54:05
问题 Why, when I run: gacutil –i myAssembly.dll do I get: Assembly successfully added to the cache But then when I run: gacutil –l myAssembly.dll I get Number of items = 0 ? 回答1: try with gacutil –l myAssembly donot add .dll at last.So if the dll is registered in GAC it will display Number of items = 1 http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx 回答2: Silly reason, really, but it took me what felt like hours to fix and is not really something you want to have to deal with when you

Register DLL in GAC without Assembly Manifest

青春壹個敷衍的年華 提交于 2020-01-03 17:20:06
问题 I have a DLL I wish to register with my GAC. I enter the command: gacutil /i c:\temp\msvcr100.dll and I get the error: Failure adding assembly to the cache: The module was expected to contain an as sembly manifest. All I have is the DLL. Is there a way to create / fake / bypass it? For those interested, I am attempting to extract the Visual Studio 2010 & .NET 4.0 CTP from the VHD and run it on my physical box. As a side note, has this been attempted? 回答1: Is this actually a GAC-able DLL? It

Two locations of gacutil.exe

北慕城南 提交于 2020-01-03 15:37:09
问题 I'm developing on Windows 2008 R2 Server, 64 bit. I'm learning how to use gacutil.exe I found two copies of this file: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64 C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\ I built a dll in VS2007, then I added a build post event, that calls gacutil.exe to transfer the dll to GAC. Does it matter which gacutil.exe I use? 回答1: I would assume that you should use the file located at C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64 since it

I can install via gacutil, but not uninstall the same dll

女生的网名这么多〃 提交于 2020-01-01 08:32:55
问题 I have installed a DLL using the gacutil. gacutil.exe /i SI.ArchiveService.CommonLogic.Exceptions.dll Using the gacutil /l shows that it is indeed installed. SI.ArchiveService.CommonLogic.Exceptions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=925c8734ae397609, processorArchitecture=MSIL Then I wanted to uninstall it. gacutil.exe /u SI.ArchiveService.CommonLogic.Exceptions.dll Microsoft (R) .NET Global Assembly Cache Utility. Version 3.5.30729.1 Copyright (c) Microsoft Corporation. All

Gacutil.exe successfully adds assembly, but assembly not viewable in explorer. Why?

蹲街弑〆低调 提交于 2019-12-28 04:58:20
问题 I'm running GacUtil.exe from within Visual Studio Command Prompt 2010 to register a dll (CatalogPromotion.dll) to the GAC. After running the utility, it says Assembly Successfully added to the cache , and running gacutil /l CatalogPromotionDll shows that the GAC contains the assembly, but I can't see the assembly when I navigate to C:\WINDOWS\assembly from Windows Explorer. Why can't I see the assembly in WINDOWS\assembly from Windows Explorer but I can see it using gacutil.exe? Background:

Location of Gacutil with vs 2008

筅森魡賤 提交于 2019-12-19 14:49:47
问题 I want to run a post build script that installs the dll in the gac, but i have to use the full path to gacutil.exe, where can i find this? i have visual studio 2008 回答1: The answer is C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\gacutil.exe 回答2: Open the Visual Studio command prompt (Start -> Programs -> Visual Studio -> Visual Studio Tools -> Visual Studio Command Prompt). Run the following command: c:\Program Files...\> where gacutil 回答3: You can copy gacutil to server from your dev PC

Assembly installed into the GAC not showing up in Visual Studio

牧云@^-^@ 提交于 2019-12-17 09:45:29
问题 This sounds related to this question, but they aren't the same thing. That question had no assemblies showing up. Mine has everything except the specific one I installed. I'm hoping someone has a solution to this... am I doing something wrong? Or did I find some bug in VS? I am using Visual Studio 2010 Professional Beta 2 on Windows 7 Ultimate. I just downloaded Rhino Mocks and decided to install it into the GAC using the command-line utility GACUTIL. I then rebooted. Here you can see the

How to register Assembly .net 4.0 in windows 7 GAC?

南楼画角 提交于 2019-12-14 01:22:29
问题 Hi i'm using vs2010 to create a .net 4.0 assembly that i pretend to register on the GAC. i can't find the gacutil and don't know ho to register an assembly on the 4.0 GAC can someone help? SOLUTION FOUND: Register using GacUtil located in: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools 回答1: You can either copy your assembly to your: %windir%\assembly folder, or use the Global Assembly Cache Utility found in the Microsoft SDK or Visual Studio SDK. 来源: https:/

Where does VS 2010 Tools' gacutil.exe install assemblies?

て烟熏妆下的殇ゞ 提交于 2019-12-12 17:40:48
问题 I used the Visual Studio 2010 Command Prompt's gacutil.exe to install an assembly. I expected the assembly to be added to C:\WINDOWS\assemblies , but it was instead added to C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL and is not showing up in C:\WINDOWS\assemblies . Is this a problem and should I be concerned that it's not showing up there? 回答1: The GAC location was changed in .Net 4. Check .NET 4.0 has a new GAC, why? for details. 来源: https://stackoverflow.com/questions/3055880/where-does-vs

How to tell which application(s) have a given assembly registered in the GAC?

不羁岁月 提交于 2019-12-10 17:22:02
问题 When trying to remove a given assembly (log4net.dll in this case, but it should apply to any similar case) using gacutil.exe, the action fails due to the assembly being required by an application. However, I can't figure out how to tell which application(s) actually require it. Since the output seems to indicate that the requirement is logged in the MSI database / Windows Installer, it would seem like some util would be able to either list all the GAC assemblies registered in the MSI database