|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
using Microsoft.DotNet.Cli.Commands.Project.Convert;
using Microsoft.DotNet.Cli.Extensions;
namespace Microsoft.DotNet.Cli.Commands.Project;
internal sealed class ProjectCommandParser
{
[RequiresDynamicCode("Uses MSBuild Object Model types, which are not AOT-safe")]
public static void ConfigureCommand(ProjectCommandDefinition command)
{
command.SetAction(parseResult => parseResult.HandleMissingCommand());
command.ConvertCommand.SetAction(parseResult => new ProjectConvertCommand(parseResult).Execute());
}
}
|