b72d625168
* Archive asp.net package references * Archive asp.net package references * Change the hash input so it's the same on all platforms * Address PR comments
30 lines
746 B
C#
30 lines
746 B
C#
// 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.
|
|
|
|
namespace Microsoft.DotNet.Cli.Build
|
|
{
|
|
public class DotNetNew : DotNetTool
|
|
{
|
|
protected override string Command
|
|
{
|
|
get { return "new"; }
|
|
}
|
|
|
|
protected override string Args
|
|
{
|
|
get { return $"{GetTemplateType()}"; }
|
|
}
|
|
|
|
public string TemplateType { get; set; }
|
|
|
|
private string GetTemplateType()
|
|
{
|
|
if (!string.IsNullOrEmpty(TemplateType))
|
|
{
|
|
return $"--type {TemplateType}";
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|