Changing schema version to 8 to match NuGet internal value and adding a pack test for the --serviceable option.
This commit is contained in:
parent
8099e6b9f7
commit
391675c5b9
4 changed files with 49 additions and 5 deletions
|
@ -14,6 +14,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
private string _tempOutputDirectory;
|
||||
private string _configuration;
|
||||
private string _versionSuffix;
|
||||
private string _serviceable;
|
||||
|
||||
private string OutputOption
|
||||
{
|
||||
|
@ -64,13 +65,24 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
}
|
||||
}
|
||||
|
||||
private string ServiceableOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return _serviceable == string.Empty ?
|
||||
"" :
|
||||
$"--serviceable";
|
||||
}
|
||||
}
|
||||
|
||||
public PackCommand(
|
||||
string projectPath,
|
||||
string output = "",
|
||||
string buildBasePath = "",
|
||||
string tempOutput="",
|
||||
string configuration="",
|
||||
string versionSuffix="")
|
||||
string versionSuffix="",
|
||||
string serviceable = "")
|
||||
: base("dotnet")
|
||||
{
|
||||
_projectPath = projectPath;
|
||||
|
@ -79,6 +91,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
_tempOutputDirectory = tempOutput;
|
||||
_configuration = configuration;
|
||||
_versionSuffix = versionSuffix;
|
||||
_serviceable = serviceable;
|
||||
}
|
||||
|
||||
public override CommandResult Execute(string args = "")
|
||||
|
@ -89,7 +102,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
|
||||
private string BuildArgs()
|
||||
{
|
||||
return $"{_projectPath} {OutputOption} {BuildBasePathOption} {TempOutputOption} {ConfigurationOption} {VersionSuffixOption}";
|
||||
return $"{_projectPath} {OutputOption} {BuildBasePathOption} {TempOutputOption} {ConfigurationOption} {VersionSuffixOption} {ServiceableOption}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue