/// <summary> /// csi.exe and vbi.exe entry point. /// </summary> internal static int RunInteractive(CommonCompiler compiler, TextWriter consoleOutput) { ErrorLogger errorLogger = null; if (compiler.Arguments.ErrorLogPath != null) { errorLogger = compiler.GetErrorLogger(consoleOutput, CancellationToken.None); if (errorLogger == null) { return CommonCompiler.Failed; } } using (errorLogger) { return RunInteractiveCore(compiler, consoleOutput, errorLogger); } }
/// <summary> /// csi.exe and vbi.exe entry point. /// </summary> internal int RunInteractive() { SarifErrorLogger errorLogger = null; if (_compiler.Arguments.ErrorLogOptions?.Path != null) { errorLogger = _compiler.GetErrorLogger(_console.Error, CancellationToken.None); if (errorLogger == null) { return(CommonCompiler.Failed); } } using (errorLogger) { return(RunInteractiveCore(errorLogger)); } }
/// <summary> /// csi.exe and vbi.exe entry point. /// </summary> internal static int RunInteractive(CommonCompiler compiler, TextWriter consoleOutput) { ErrorLogger errorLogger = null; if (compiler.Arguments.ErrorLogPath != null) { errorLogger = compiler.GetErrorLogger(consoleOutput, CancellationToken.None); if (errorLogger == null) { return(CommonCompiler.Failed); } } using (errorLogger) { return(RunInteractiveCore(compiler, consoleOutput, errorLogger)); } }