Monday, March 19, 2007

Gacutil.exe in .Net 2

Deploying a .Net 2 application onto a test server that doesn't have the SDK (but does have the framework, of course), we have a script that installs a bunch of assemblies to the GAC. This script uses the Gacutil.exe program, found in the C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 folder in .Net 1.1.

Problem with this? Gacutil.exe doesn't ship with the framework any more, only with the SDK. Apparently the recommended way of deploying is now with a Setup and Deployment project from Visual Studio 2005.

Well we can't do this, so I've copied Gacutil.exe, and Gacutil.exe.config to the framework directory on the server, and hey presto, the scripts now install the assemblies correctly.

No comments: