/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/Server/VBCSCompiler/VBCSCompiler.cs
42 строки
1 KB
Jan Jones
Allow purging compiler cache (#83242)
28 апр 2026, 20:43
Не верифицирован
28 апр 2026, 20:43
2639a67
Код
Авторство
О чём код?
// 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. using System; using System.Diagnostics; using Microsoft.CodeAnalysis.CommandLine; namespace Microsoft.CodeAnalysis.CompilerServer { internal static class VBCSCompiler { public static int Main(string[] args) { // Pre-parse arguments to extract the log file path and other values so the logger can be // initialized with the correct path before the controller is created. if (!BuildServerController.ParseCommandLine(args, out var options)) { return CommonCompiler.Failed; } using var logger = new CompilerServerLogger($"VBCSCompiler {Process.GetCurrentProcess().Id}", options.LogFilePath); #if BOOTSTRAP ExitingTraceListener.Install(logger); #endif try { var controller = new BuildServerController(logger); return controller.Run(options); } catch (Exception e) { // Assume the exception was the result of a missing compiler assembly. logger.LogException(e, "Cannot start server"); } return CommonCompiler.Failed; } } }