Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Register DLL in GAC without Assembly Manifest

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?

like image 522
tsilb Avatar asked Mar 12 '09 00:03

tsilb


People also ask

How to register DLL files in GAC without using gacutil?

Register dll in GAC without using gacutil Usually we register the dll to the Global Assembly Cache a.k.a GAC using the Visual Studio developer console Gacutil or earlier to Windows server 2012 you can simply drag and drop to the Windows Assembly folder With the Windows server 2012 drag and drop the file to the assembly folder will no longer work

How do I register an assembly in the GAC?

gacutil.exe is the .NET utility used to work with the GAC. One can check the availability of a shared assembly in GAC by using the command: One can register a shared assembly in the GAC by using the command: Or by dropping an assembly file into the following location using the GUI:

How do I install an assembly in the GAC using Visual Studio?

The syntax for using gacutil.exe to install an assembly in the GAC is as follows: In this command, <assembly name> is the name of the assembly to install in the global assembly cache. If gacutil.exe isn't in your system path, use Visual Studio Developer Command Prompt or Visual Studio Developer PowerShell.

How to register a DLL file in Windows Server 2012?

Usually we register the dll to the Global Assembly Cache a.k.a GAC using the Visual Studio developer console Gacutil or earlier to Windows server 2012 you can simply drag and drop to the Windows Assembly folder With the Windows server 2012 drag and drop the file to the assembly folder will no longer work


1 Answers

Is this actually a GAC-able DLL? It doesn't seem like it. Maybe it's just reg-able? Why do you want to GAC it?

like image 127
Erik A. Brandstadmoen Avatar answered Nov 15 '22 10:11

Erik A. Brandstadmoen