Merge pull request #1449 from dotnet/pakrym/runtime-assets

Fix publish runtime asseets
This commit is contained in:
Pavel Krymets 2016-02-18 08:07:37 -08:00
commit c65a1700eb
6 changed files with 34 additions and 26 deletions

View file

@ -16,6 +16,8 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
{
public sealed class PublishCommand : TestCommand
{
private const string PublishSubfolderName = "publish";
private Project _project;
private string _path;
private string _framework;
@ -61,8 +63,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
string framework = string.IsNullOrEmpty(_framework) ?
_project.GetTargetFrameworks().First().FrameworkName.GetShortFolderName() : _framework;
string runtime = string.IsNullOrEmpty(_runtime) ? PlatformServices.Default.Runtime.GetLegacyRestoreRuntimeIdentifier() : _runtime;
string output = Path.Combine(config, framework, runtime);
string output = Path.Combine(config, framework, runtime, PublishSubfolderName);
return output;
}