Fixing test script issues and addressing RID detection change

This commit is contained in:
piotrp 2016-01-09 18:04:13 -08:00
parent 5cd64066c4
commit 096b7d21dc
2 changed files with 2 additions and 3 deletions

View file

@ -47,7 +47,7 @@ foreach {
$testName = "test\PackagedCommands\Consumers\$_" $testName = "test\PackagedCommands\Consumers\$_"
pushd "$RepoRoot\$testName" pushd "$RepoRoot\$testName"
$outputArray = dotnet hello | Out-String $outputArray = dotnet hello | Out-String
$output = [string]::Join('\n', $outputArray) $output = [string]::Join('\n', $outputArray).Trim("`r", "`n")
del "project.json" del "project.json"
if ($output -ne "hello") { if ($output -ne "hello") {
@ -55,7 +55,6 @@ foreach {
error " printed $output" error " printed $output"
Exit 1 Exit 1
} }
}
info "Test passed: $testName" info "Test passed: $testName"
popd popd

View file

@ -356,7 +356,7 @@ namespace Microsoft.DotNet.Tools.Compiler
{ {
var projectContext = var projectContext =
ProjectContext.Create(context.ProjectDirectory, context.TargetFramework, ProjectContext.Create(context.ProjectDirectory, context.TargetFramework,
new[] {RuntimeIdentifier.Current}); new[] { PlatformServices.Default.Runtime.GetLegacyRestoreRuntimeIdentifier()});
projectContext projectContext
.CreateExporter(args.ConfigValue) .CreateExporter(args.ConfigValue)