/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/VisualBasic/vbc/Program.cs
45 строк
2 KB
Jared Parsons
Increase output in /shared logging (#66616)
01 фев 2023, 01:46
Не верифицирован
01 фев 2023, 01:46
029a93d
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Diagnostics; using System.IO; using Microsoft.CodeAnalysis.CommandLine; namespace Microsoft.CodeAnalysis.VisualBasic.CommandLine { public class Program { public static int Main(string[] args) { try { return MainCore(args); } catch (FileNotFoundException e) { // Catch exception from missing compiler assembly. // Report the exception message and terminate the process. Console.WriteLine(e.Message); return CommonCompiler.Failed; } } private static int MainCore(string[] args) { using var logger = new CompilerServerLogger($"vbc {Process.GetCurrentProcess().Id}"); #if BOOTSTRAP ExitingTraceListener.Install(logger); #endif return BuildClient.Run(args, RequestLanguage.VisualBasicCompile, Vbc.Run, BuildClient.GetCompileOnServerFunc(logger), logger); } 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); } }