internal static int Run(string[] args, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader) { FatalError.Handler = FailFast.OnFatalException; var responseFile = Path.Combine(buildPaths.ClientDirectory, VisualBasicCompiler.ResponseFileName); var compiler = new Vbc(responseFile, buildPaths, args, analyzerLoader); return ConsoleUtil.RunWithUtf8Output(compiler.Arguments.Utf8Output, textWriter, tw => compiler.Run(tw)); }
internal static int Run(string clientDirectory, string sdkDirectory, string[] args, IAnalyzerAssemblyLoader analyzerLoader) { FatalError.Handler = FailFast.OnFatalException; var responseFile = Path.Combine(clientDirectory, VisualBasicCompiler.ResponseFileName); Vbc compiler = new Vbc(responseFile, clientDirectory, Directory.GetCurrentDirectory(), sdkDirectory, args, analyzerLoader); return ConsoleUtil.RunWithOutput(compiler.Arguments.Utf8Output, (textWriterOut, _) => compiler.Run(textWriterOut)); }
public static int Run( string[] args, string clientDir, string workingDir, string sdkDir, string tempDir, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader ) => Vbc.Run( args, new BuildPaths( clientDir: clientDir, workingDir: workingDir, sdkDir: sdkDir, tempDir: tempDir ), textWriter, analyzerLoader );
internal static int Run( string[] args, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader ) { FatalError.Handler = FailFast.OnFatalException; var responseFile = Path.Combine( buildPaths.ClientDirectory, VisualBasicCompiler.ResponseFileName ); var compiler = new Vbc(responseFile, buildPaths, args, analyzerLoader); return(ConsoleUtil.RunWithUtf8Output( compiler.Arguments.Utf8Output, textWriter, tw => compiler.Run(tw) )); }
public static int Main(string[] args) => Vbc.Run(args: args, clientDirectory: AppContext.BaseDirectory, sdkDirectory: @"C:\Windows\Microsoft.NET\Framework\v4.0.30319", analyzerLoader: CoreClrAnalyzerAssemblyLoader.CreateAndSetDefault());
public static int Main(string[] args) => Vbc.Run(args: args, clientDirectory: AppContext.BaseDirectory, sdkDirectory: @"C:\Windows\Microsoft.NET\Framework\v4.0.30319", analyzerLoader: new NoOpAnalyzerAssemblyLoader());