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

Flavio Oliveira picture Flavio Oliveira · Aug 3, 2011 · Viewed 145.9k times · Source

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?

Answer

Ade Stringer picture Ade Stringer · Sep 13, 2011

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.