From 638b035ac1a7227ac4b110d5e79bb1db6ec9cd79 Mon Sep 17 00:00:00 2001 From: icedream Date: Sat, 10 Jan 2015 14:42:04 +0100 Subject: [PATCH] Disable CommandLine custom assembly attributes since they crash Mono. --- src/updater/CitizenMP Server Updater.csproj | 4 ++-- src/updater/CommandLineOptions.cs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/updater/CitizenMP Server Updater.csproj b/src/updater/CitizenMP Server Updater.csproj index f6e4378..21c2316 100644 --- a/src/updater/CitizenMP Server Updater.csproj +++ b/src/updater/CitizenMP Server Updater.csproj @@ -21,7 +21,7 @@ true full false - DEBUG;TRACE + TRACE;DEBUG;NO_COMMANDLINE prompt 4 false @@ -31,7 +31,7 @@ AnyCPU pdbonly true - TRACE + TRACE;NO_COMMANDLINE prompt 4 false diff --git a/src/updater/CommandLineOptions.cs b/src/updater/CommandLineOptions.cs index 14808d4..49c76b0 100644 --- a/src/updater/CommandLineOptions.cs +++ b/src/updater/CommandLineOptions.cs @@ -46,9 +46,13 @@ namespace CitizenMP.Server.Installer } help.AddPreOptionsLine(" "); +#if NO_COMMANDLINE help.AddPreOptionsLine(((AssemblyLicenseAttribute)assembly .GetCustomAttributes(typeof(AssemblyLicenseAttribute), false) .Single()).Value.Trim()); +#endif + help.AddPreOptionsLine( + "This is free software. You may redistribute copies of it under the terms of the MIT License ."); help.AddPreOptionsLine(" "); help.AddPreOptionsLine(string.Format("{0}{1} [options...] \"\"", Process.GetCurrentProcess().ProcessName,