From 64f89c990abc43c7e51b8fd11fd01ae481b52441 Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Thu, 4 Feb 2016 18:03:33 -0800 Subject: [PATCH] Making the tests build without tfm, rid or configuration, because dotnet test does not understand those. that means that if we build for release and then do a dotnet test, the test will fail because dotnet test will look for binaries under debug/tfm. --- scripts/test/build-tests.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/test/build-tests.ps1 b/scripts/test/build-tests.ps1 index 54876ee81..140e75ab6 100644 --- a/scripts/test/build-tests.ps1 +++ b/scripts/test/build-tests.ps1 @@ -8,9 +8,10 @@ # Publish each test project loadTestProjectList | foreach { #we should use publish to an output path, we will once issue #1183 has been fixed and we can point dotnet test do a dll. - dotnet build --framework "dnxcore50" --runtime "$Rid" --configuration "$Configuration" "$RepoRoot\test\$($_.ProjectName)" + #we need to add back tfm, rid and configuration, but dotnet test need to be made aware of those as well. Tracked at issue #1237. + dotnet build "$RepoRoot\test\$($_.ProjectName)" if (!$?) { - Write-Host Command failed: dotnet publish --framework "dnxcore50" --runtime "$Rid" --configuration "$Configuration" "$RepoRoot\test\$($_.ProjectName)" + Write-Host Command failed: dotnet build "$RepoRoot\test\$($_.ProjectName)" exit 1 } }