Imported Upstream version 4.0.1

Former-commit-id: 6d37e02debfe41dd5c13ba6f6a2428c8b1ff5e28
This commit is contained in:
Jo Shields
2015-04-26 19:10:23 +01:00
parent 3c1f479b9d
commit 7272927785
252 changed files with 16715 additions and 1176 deletions

View File

@@ -8,7 +8,6 @@
//
using System;
using System.IO;
using System.Reflection;
using Mono.Cecil;
@@ -17,7 +16,7 @@ namespace Mono.CilStripper {
class Program {
static void Main (string [] args)
static int Main (string [] args)
{
Header ();
@@ -35,11 +34,13 @@ namespace Mono.CilStripper {
Console.WriteLine ("Assembly {0} stripped out into {1}", file, output);
else
Console.WriteLine ("Assembly {0} stripped", file);
return 0;
} catch (TargetInvocationException tie) {
Console.WriteLine ("Error: {0}", tie.InnerException);
} catch (Exception e) {
Console.WriteLine ("Error: {0}", e);
}
return 1;
}
static void StripAssembly (AssemblyDefinition assembly, string output)