Changing schema version to 8 to match NuGet internal value and adding a pack test for the --serviceable option.

This commit is contained in:
Todd Moscinski 2016-06-03 15:46:16 -07:00
parent b596122d5c
commit e45259c6fa
4 changed files with 49 additions and 5 deletions

View file

@ -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}";
}
}
}