Fixing publish to create executable with the outputName if specified

This commit is contained in:
moozzyk 2016-03-17 13:46:46 -07:00
parent 03f5379165
commit 621d8376c3
3 changed files with 36 additions and 8 deletions

View file

@ -81,9 +81,12 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
public string GetOutputExecutable()
{
var result = _project.Name;
result += RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : "";
return result;
return _project.Name + GetExecutableExtension();
}
public string GetExecutableExtension()
{
return RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : "";
}
private string BuildArgs()