+2004-04-29 Jackson Harper <jackson@ximian.com>
+
+ * gacutil.cs: Allow a prefix to be specified. This is only for
+ packaging if you install to some wack prefix it wont work.
+
2004-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* gacutil.cs: return non-zero when something fails.
bool force = false;
- if(args.Length == 2 && (args[1] == "/f" || args[1] == "--force"))
+ if(args.Length >= 2 && (args[1] == "/f" || args[1] == "--force"))
force = true;
-
+ if (args.Length == 4 && (args [2] == "/prefix"))
+ gac_path = args [3];
string version_token = an.Version + "_" +
an.CultureInfo.Name.ToLower () +
"_" + GetStringToken (an.GetPublicKeyToken ());
-
+
string fullPath = String.Format ("{0}{3}{1}{3}{2}{3}", gac_path, an.Name, version_token, Path.DirectorySeparatorChar);
-
+ Console.WriteLine ("installing to fullpath: " + fullPath);
if (File.Exists (fullPath + an.Name + ".dll") && force == false) {
Hashtable assemInfo = GetAssemblyInfo (fullPath + "__AssemblyInfo__");
assemInfo["RefCount"] = ((int) Convert.ToInt32 (assemInfo["RefCount"]) + 1).ToString ();