+2009-02-01 Ankit Jain <jankit@novell.com>
+
+ * Csc.cs (AddResponseFileCommands):
+ * ManagedCompiler.cs (AddResponseFileCommands): 'AddModules' and
+ 'AdditionalLibPaths' can be empty.
+
2009-01-30 Ankit Jain <jankit@novell.com>
* Copy.cs (Execute): Use for loop instead of enumerators.
{
base.AddResponseFileCommands (commandLine);
- commandLine.AppendSwitchIfNotNull ("/lib:", AdditionalLibPaths, ",");
+ if (AdditionalLibPaths != null && AdditionalLibPaths.Length > 0)
+ commandLine.AppendSwitchIfNotNull ("/lib:", AdditionalLibPaths, ",");
if (Bag ["AllowUnsafeBlocks"] != null)
if (AllowUnsafeBlocks)
protected internal override void AddResponseFileCommands (
CommandLineBuilderExtension commandLine)
{
- commandLine.AppendSwitchIfNotNull ("/addmodule:", AddModules, ",");
+ if (AddModules != null && AddModules.Length > 0)
+ commandLine.AppendSwitchIfNotNull ("/addmodule:", AddModules, ",");
if (Bag ["CodePage"] != null)
commandLine.AppendSwitchIfNotNull ("/codepage:", CodePage.ToString ());