Disable CommandLine custom assembly attributes since they crash Mono.

release-1.0.0
Icedream 2015-01-10 14:42:04 +01:00
parent 9c6478f6ac
commit 638b035ac1
2 changed files with 6 additions and 2 deletions

View File

@ -21,7 +21,7 @@
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>TRACE;DEBUG;NO_COMMANDLINE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit> <Prefer32Bit>false</Prefer32Bit>
@ -31,7 +31,7 @@
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE;NO_COMMANDLINE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit> <Prefer32Bit>false</Prefer32Bit>

View File

@ -46,9 +46,13 @@ namespace CitizenMP.Server.Installer
} }
help.AddPreOptionsLine(" "); help.AddPreOptionsLine(" ");
#if NO_COMMANDLINE
help.AddPreOptionsLine(((AssemblyLicenseAttribute)assembly help.AddPreOptionsLine(((AssemblyLicenseAttribute)assembly
.GetCustomAttributes(typeof(AssemblyLicenseAttribute), false) .GetCustomAttributes(typeof(AssemblyLicenseAttribute), false)
.Single()).Value.Trim()); .Single()).Value.Trim());
#endif
help.AddPreOptionsLine(
"This is free software. You may redistribute copies of it under the terms of the MIT License <http://www.opensource.org/licenses/mit-license.php>.");
help.AddPreOptionsLine(" "); help.AddPreOptionsLine(" ");
help.AddPreOptionsLine(string.Format("{0}{1} [options...] \"<targetpath>\"", help.AddPreOptionsLine(string.Format("{0}{1} [options...] \"<targetpath>\"",
Process.GetCurrentProcess().ProcessName, Process.GetCurrentProcess().ProcessName,