Remove no longer applicable workaround in run-build.ps1. Applied expression bodied properties to solution.
This commit is contained in:
parent
03b1532ebf
commit
c9ab438e6c
13 changed files with 27 additions and 124 deletions
|
@ -16,64 +16,28 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
private string _versionSuffix;
|
||||
private bool _serviceable;
|
||||
|
||||
private string OutputOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return _outputDirectory == string.Empty ?
|
||||
private string OutputOption => _outputDirectory == string.Empty ?
|
||||
"" :
|
||||
$"-o \"{_outputDirectory}\"";
|
||||
}
|
||||
}
|
||||
private string BuildBasePathOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return _buildBasePath == string.Empty ?
|
||||
private string BuildBasePathOption => _buildBasePath == string.Empty ?
|
||||
"" :
|
||||
$"-b \"{_buildBasePath}\"";
|
||||
}
|
||||
}
|
||||
|
||||
private string TempOutputOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return _tempOutputDirectory == string.Empty ?
|
||||
private string TempOutputOption => _tempOutputDirectory == string.Empty ?
|
||||
"" :
|
||||
$"-t {_tempOutputDirectory}";
|
||||
}
|
||||
}
|
||||
|
||||
private string ConfigurationOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configuration == string.Empty ?
|
||||
private string ConfigurationOption => _configuration == string.Empty ?
|
||||
"" :
|
||||
$"-c {_configuration}";
|
||||
}
|
||||
}
|
||||
|
||||
private string VersionSuffixOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return _versionSuffix == string.Empty ?
|
||||
private string VersionSuffixOption => _versionSuffix == string.Empty ?
|
||||
"" :
|
||||
$"--version-suffix {_versionSuffix}";
|
||||
}
|
||||
}
|
||||
|
||||
private string ServiceableOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return _serviceable ?
|
||||
private string ServiceableOption => _serviceable ?
|
||||
$"--serviceable" :
|
||||
"";
|
||||
}
|
||||
}
|
||||
|
||||
public PackCommand WithConfiguration(string configuration)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue