| File: Commands\Build\BuildCommandParser.cs | Web Access |
| Project: src\sdk\src\Cli\dotnet\dotnet.csproj (dotnet) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Build; internal static class BuildCommandParser { public static void ConfigureCommand(BuildCommandDefinition command) { command.SetAction(BuildCommand.Run); command.FrameworkOption.AddCompletions(CliCompletion.TargetFrameworksFromProjectFile); command.ConfigurationOption.AddCompletions(CliCompletion.ConfigurationsFromProjectFileOrDefaults); command.TargetPlatformOptions.RuntimeOption.AddCompletions(CliCompletion.RuntimesFromProjectFile); } }