WiP
This commit is contained in:
parent
578adf072c
commit
56d2153c08
4 changed files with 180 additions and 168 deletions
50
build_projects/dotnet-cli-build/DotNetDebTool.cs
Normal file
50
build_projects/dotnet-cli-build/DotNetDebTool.cs
Normal file
|
@ -0,0 +1,50 @@
|
|||
// 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 DotNetDebTool : DotNetTool
|
||||
{
|
||||
protected override string Command
|
||||
{
|
||||
get { return "deb-tool"; }
|
||||
}
|
||||
|
||||
protected override string Args
|
||||
{
|
||||
get { return $"{GetInputDir()} {GetOutputFile()} {GetPackageName()} {GetPackageVersion()}"; }
|
||||
}
|
||||
|
||||
[Required]
|
||||
public string InputDir { get; set; }
|
||||
|
||||
[Required]
|
||||
public string OutputFile { get; set; }
|
||||
|
||||
[Required]
|
||||
public string PackageName { get; set; }
|
||||
|
||||
[Required]
|
||||
public string PackageVersion { get; set; }
|
||||
|
||||
private string GetInputDir()
|
||||
{
|
||||
return $"-i {InputDir}";
|
||||
}
|
||||
|
||||
private string GetOutputFile()
|
||||
{
|
||||
return $"-o {OutputFile}";
|
||||
}
|
||||
|
||||
private string GetPackageName()
|
||||
{
|
||||
return $"-n {PackageName}";
|
||||
}
|
||||
|
||||
private string GetPackageVersion()
|
||||
{
|
||||
return $"-v {PackageVersion}";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue