-HaltOnWarning added
This commit is contained in:
parent
d5b7c10e32
commit
27ad37a7c9
2 changed files with 14 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ namespace Server
|
|||
private static bool m_Service;
|
||||
private static bool m_Debug;
|
||||
private static bool m_Cache = true;
|
||||
private static bool m_HaltOnWarning;
|
||||
private static MultiTextWriter m_MultiConOut;
|
||||
|
||||
private static bool m_Profiling;
|
||||
|
|
@ -96,6 +97,7 @@ namespace Server
|
|||
|
||||
public static bool Service { get { return m_Service; } }
|
||||
public static bool Debug { get { return m_Debug; } }
|
||||
internal static bool HaltOnWarning { get { return m_HaltOnWarning; } }
|
||||
public static List<string> DataDirectories { get { return m_DataDirectories; } }
|
||||
public static Assembly Assembly { get { return m_Assembly; } set { m_Assembly = value; } }
|
||||
public static Process Process { get { return m_Process; } }
|
||||
|
|
@ -343,6 +345,9 @@ namespace Server
|
|||
Profiling = true;
|
||||
else if( Insensitive.Equals( args[i], "-nocache" ) )
|
||||
m_Cache = false;
|
||||
else if( Insensitive.Equals( args[i], "-haltonwarning" ) )
|
||||
m_HaltOnWarning = true;
|
||||
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -484,6 +489,9 @@ namespace Server
|
|||
if( !m_Cache )
|
||||
Utility.Seperate( sb, "-nocache", " " );
|
||||
|
||||
if( m_HaltOnWarning )
|
||||
Utility.Seperate( sb, "-haltonwarning", " " );
|
||||
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -218,6 +218,9 @@ namespace Server
|
|||
if( defines != null )
|
||||
parms.CompilerOptions = string.Format( "/D:{0}", defines );
|
||||
|
||||
if( Core.HaltOnWarning )
|
||||
parms.WarningLevel = 4;
|
||||
|
||||
CompilerResults results = provider.CompileAssemblyFromFile( parms, files );
|
||||
m_AdditionalReferences.Add( path );
|
||||
|
||||
|
|
@ -338,6 +341,9 @@ namespace Server
|
|||
if( defines != null )
|
||||
parms.CompilerOptions = String.Format( "/D:{0}", defines );
|
||||
|
||||
if( Core.HaltOnWarning )
|
||||
parms.WarningLevel = 4;
|
||||
|
||||
CompilerResults results = provider.CompileAssemblyFromFile( parms, files );
|
||||
m_AdditionalReferences.Add( path );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue