So, on a Win 2008 R2 Std x64, I have 6 (six) gacutil.exe all different (not counting ones in VS folders), in:
c:\Program Files\Microsoft SDKs\Windows\v6.0A\Binc:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Binc:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64- c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\x64
Questions are:
- Does
x64
versions have any difference in behavior? - Should I prefer
v7.0A
versions to otherv6.0A
? - Should I use
NETFX 4.0 Tools
versions for .NET 4.0 assemblies, and the "standard" version for the rest?
Or, if there is some general type article on the subject, I will be grateful.
Update 1. Concerning Hans Passant's answer:
- gacutil.exe is a .NET Framework Tool part of a "Build, Deployment, and Configuration Tools (.NET Framework)" as now obsolete (!) shfusion.dll was;
- Indeed v6.0A are from VS2008 install, and can be ignored (1, 2);
- The 64-bit explanation theory also sounds reasonable. I also suppose that there is most probably an IA64 version of gacutil.exe, so it's like a "tool copy for each platform", it's just happened so that the x86 version runs fine everywhere because of WoW64. Minus 2 gacutil version from the list (4, 6);
- The part about which version to use, seems to be wrong. V4.0 gacutil.exe detects and places assembly according to its target CLR, and works fine for both .NET 4.0 and earlier version assemblies. So the question is, why leave V2.0 gacutil.exe? My guess would be for the purpose of deployment on environments there.NET4.0 is unavailable.
- To use or not to use GAC, wasn't in the question. So I leave the last paragraph with no comments.
Update 2.
So, to me seems like one can safely use either number 3 (then .NET4.0 is unavailable) or number 5 otherwise for all GAC operations on Windows x86 and x64. And the answers to the questions are:
- No.
- Doesn't matter, but using newer versions seems more logical.
- No, you can always use
NETFX 4.0 Tools
version (if .NET4.0 is available) for all GAC operations.