Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is GACUTIL for .net Framework 4.0 in windows 7?

i've made an assembly in the .net framework that I intend to publish to the GAC but I can't find the gacutil utlity.

I've been googling a while and I've found a lot of suggestions, but nothing works:

  • Copy the assemby to %window%\assemby [DOES NOT WORK]
  • Copy the assemby to %window%\Microsoft.NET\assembly [DOES NOT WORK]
  • C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\gacutil.exe /i "assembly" [returns an error: this assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded]

Does anyone have idea to solve this?

like image 709
Flavio CF Oliveira Avatar asked Aug 03 '11 10:08

Flavio CF Oliveira


People also ask

Where do I find Gacutil?

The Gacutil.exe tool is located in the . NET Framework installation directory. The default location for this is C:\Program Files (x86)\Microsoft SDKs\Windows\v10. 0A\bin\NETFX 4.6.


1 Answers

If you've got VS2010 installed, you ought to find a .NET 4.0 gacutil at

 C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools 

The 7.0A Windows SDK should have been installed alongside VS2010 - 6.0A will have been installed with VS2008, and hence won't have .NET 4.0 support.

like image 124
Ade Stringer Avatar answered Oct 16 '22 11:10

Ade Stringer