2016-10-05 18:51:59 +00:00
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
2016-10-04 04:40:24 +00:00
|
|
|
using Microsoft.DotNet.Cli.Utils;
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Cli.CommandResolution
|
|
|
|
{
|
|
|
|
public class ProjectToolsCommandResolverPolicy : ICommandResolverPolicy
|
|
|
|
{
|
|
|
|
public CompositeCommandResolver CreateCommandResolver()
|
|
|
|
{
|
|
|
|
var defaultCommandResolverPolicy = new DefaultCommandResolverPolicy();
|
|
|
|
var compositeCommandResolver = defaultCommandResolverPolicy.CreateCommandResolver();
|
|
|
|
var packagedCommandSpecFactory = new PackagedCommandSpecFactory();
|
|
|
|
|
|
|
|
compositeCommandResolver.AddCommandResolver(new ProjectToolsCommandResolver(packagedCommandSpecFactory));
|
|
|
|
|
|
|
|
return compositeCommandResolver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|