// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#if NET_2_0
using System;
using System.IO;
commandLine.AppendSwitchIfNotNull ("/main:", MainEntryPoint);
// NoStandardLib
+ if (Bag ["NoStandardLib"] != null && NoStandardLib)
+ commandLine.AppendSwitch ("/nostdlib");
if (NoWarnings)
commandLine.AppendSwitch ("/nowarn");
else
commandLine.AppendSwitch ("/optionstrict-");
+ if (Bag ["OptionInfer"] != null)
+ if (OptionInfer)
+ commandLine.AppendSwitch ("/optioninfer+");
+ else
+ commandLine.AppendSwitch ("/optioninfer-");
+
// OptionStrictType
// Platform
commandLine.AppendSwitchIfNotNull ("/sdkpath:", SdkPath);
// TargetCompactFramework
+
+ if (String.Compare (VBRuntime, "Embed", StringComparison.OrdinalIgnoreCase) == 0)
+ commandLine.AppendSwitch ("/vbruntime*");
// Verbosity
return true;
}
- protected override void LogEventsFromTextOutput (string singleLine, MessageImportance importance)
+ protected override void LogEventsFromTextOutput (string singleLine, MessageImportance messageImportance)
{
singleLine = singleLine.Trim ();
if (singleLine.Length == 0)
Match match = ErrorRegex.Match (singleLine);
if (!match.Success) {
- Log.LogMessage (importance, singleLine);
+ Log.LogMessage (messageImportance, singleLine);
return;
}
Log.LogError (null, code, null, filename, lineNumber, columnNumber, -1,
-1, text, null);
} else {
- Log.LogMessage (importance, singleLine);
+ Log.LogMessage (messageImportance, singleLine);
}
}
get { return (string) Bag ["OptionStrictType"]; }
set { Bag ["OptionStrictType"] = value; }
}
+
+ [MonoTODO]
+ public bool OptionInfer {
+ get { return GetBoolParameterWithDefault ("OptionInfer", false); }
+ set { Bag ["OptionInfer"] = value; }
+ }
[MonoTODO]
public string Platform {
[MonoTODO]
protected override string ToolName {
get {
-#if NET_4_0
return MSBuildUtils.RunningOnWindows ? "vbnc.bat" : "vbnc";
-#else
- return MSBuildUtils.RunningOnWindows ? "vbnc2.bat" : "vbnc2";
-#endif
}
}
set { Bag ["UseHostCompilerIfAvailable"] = value; }
}
+ [MonoTODO]
+ public string VBRuntime {
+ get { return (string) Bag ["VBRuntime"]; }
+ set { Bag ["VBRuntime"] = value; }
+ }
+
[MonoTODO]
public string Verbosity {
get { return (string) Bag ["Verbosity"]; }
}
}
-#endif