.NET 4.0 GAC Post-build Event Command

For various design reasons .NET 4.0 has it's own GAC, located here.

%systemroot%\Windows\Microsoft.NET\assembly

An updated version 4.0 of gacutil is available as a part of the Windows SDK. Here is a handy VS.NET "Post-build event command", that will .NET 4.0 GAC your freshly baked assemblies.

"%programfiles(x86)%\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\gacutil.exe" /i "$(TargetPath)"
Posted by: Ben Simmonds
Last revised: 10 Jul, 2011 12:43 PM

Comments

Your Comments

Used for your gravatar. Not required. Will not be public.
Posting code? Indent it by four spaces to make it look nice. Learn more about Markdown.

Preview