// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
using System;
}
return sb.ToString ();
}
-
+#if false
// is assembly signed (or delayed signed) ?
static bool IsStrongNamed (Assembly assembly)
{
}
return false;
}
-
+#endif
static bool ReSign (string assemblyName, RSA key)
{
// this doesn't load the assembly (well it unloads it ;)
// http://weblogs.asp.net/nunitaddin/posts/9991.aspx
- AssemblyName an = AssemblyName.GetAssemblyName (assemblyName);
+ AssemblyName an = null;
+ try {
+ an = AssemblyName.GetAssemblyName (assemblyName);
+ }
+ catch {
+ }
if (an == null) {
Console.WriteLine ("Unable to load assembly: {0}", assemblyName);
return false;
{
// this doesn't load the assembly (well it unloads it ;)
// http://weblogs.asp.net/nunitaddin/posts/9991.aspx
- AssemblyName an = AssemblyName.GetAssemblyName (assemblyName);
+ AssemblyName an = null;
+ try {
+ an = AssemblyName.GetAssemblyName (assemblyName);
+ }
+ catch {
+ }
if (an == null) {
Console.WriteLine ("Unable to load assembly: {0}", assemblyName);
return 2;
Console.WriteLine (" -Vr assembly [userlist]{0}\tExempt the specified assembly from verification for the user list", Environment.NewLine);
Console.WriteLine (" -Vu assembly{0}\tRemove exemption entry for the specified assembly", Environment.NewLine);
Console.WriteLine (" -Vx{0}\tRemove all exemptions entries", Environment.NewLine);
+ Console.WriteLine ("{0}<1> Currently not implemented in the tool", Environment.NewLine);
break;
case "csp":
Console.WriteLine ("CSP related options");
Console.WriteLine (" -? | -h sn \tStrongName signing options");
break;
}
- Console.WriteLine ("{0}<1> Currently not implemented in the tool", Environment.NewLine);
}
[STAThread]
byte[] infileD = ReadFromFile (args [i++]);
WriteCSVToFile (args [i], infileD, "D");
if (!quiet)
- Console.WriteLine ("Output CVS file is {0} (decimal format)", args [i]);
+ Console.WriteLine ("Output CSV file is {0} (decimal format)", args [i]);
break;
case "-oh":
byte[] infileX2 = ReadFromFile (args [i++]);