Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
 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
     );
Beispiel #4
0
        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)
                       ));
        }
Beispiel #5
0
 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());
Beispiel #6
0
 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());