/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/Core/MSBuildTask/Csi.cs
46 строк
2 KB
Jared Parsons
Remove host specific args from CommandLineArgs (#68918)
11 июл 2023, 20:32
Не верифицирован
11 июл 2023, 20:32
854fa07
Код
Авторство
О чём код?
// 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.Text; using Microsoft.Build.Framework; namespace Microsoft.CodeAnalysis.BuildTasks { public class Csi : InteractiveCompiler { #region Properties - Please keep these alphabetized. // These are the parameters specific to Csi. // The ones shared between Csi and Vbi are defined in InteractiveCompiler.cs, which is the base class. #endregion #region Tool Members /// <summary> /// Return the name of the tool to execute. /// </summary> protected override string ToolNameWithoutExtension => "csi"; #endregion #region Interactive Compiler Members protected override void AddCommandLineCommands(CommandLineBuilderExtension commandLine) { // Nothing to add } protected override void AddResponseFileCommands(CommandLineBuilderExtension commandLine) { commandLine.AppendSwitchIfNotNull("/lib:", AdditionalLibPaths, ","); commandLine.AppendSwitchIfNotNull("/loadpaths:", AdditionalLoadPaths, ","); commandLine.AppendSwitchIfNotNull("/imports:", Imports, ";"); Csc.AddReferencesToCommandLine(commandLine, References, isInteractive: true); base.AddResponseFileCommands(commandLine); } #endregion } }