@@ -362,39 +362,39 @@ function VerifyAssemblyVersionsAndSymbols() {
362362    }
363363}
364364
365- function  TestUsingMSBuild ([string ] $path  ,  [string ] $targetFramework ,  [string ]$testadapterpath ,  [boolean ] $asBackgroundJob  =  $false ,  [string ] $settings  =  " " 
365+ function  TestUsingMSBuild ([string ] $testProject  ,  [string ] $targetFramework ,  [string ]$testadapterpath ,  [boolean ] $asBackgroundJob  =  $false ,  [string ] $settings  =  " " 
366366    $dotnetPath  =  InitializeDotNetCli
367367    $dotnetExe  =  Join-Path  $dotnetPath  " dotnet.exe" 
368-     $targetName   =  [System.IO.Path ]::GetFileNameWithoutExtension($path  )
368+     $projectName   =  [System.IO.Path ]::GetFileNameWithoutExtension($testProject  )
369369    $testLogPath  =  " $ArtifactsDir \TestResults\$configuration \{assembly}_{framework}.xml" 
370-     $testBinLogPath  =  " $LogDir \${targetName } _$targetFramework .binlog" 
371-     $arguments   =  " test $path   -c $configuration  -f $targetFramework  -v n --test-adapter-path $testadapterpath  --logger "" xunit;LogFilePath=$testLogPath ""  /bl:$testBinLogPath " 
372-     $arguments   +=  "  --blame --blame-hang-timeout 5minutes --results-directory $ArtifactsDir \TestResults\$configuration  -p:vstestusemsbuildoutput=true" 
370+     $testBinLogPath  =  " $LogDir \${projectName } _$targetFramework .binlog" 
371+     $args   =  " test $testProject   -c $configuration  -f $targetFramework  -v n --test-adapter-path $testadapterpath  --logger "" xunit;LogFilePath=$testLogPath ""  /bl:$testBinLogPath " 
372+     $args   +=  "  --blame --blame-hang-timeout 5minutes --results-directory $ArtifactsDir \TestResults\$configuration  -p:vstestusemsbuildoutput=true" 
373373
374374    if  (-not  $noVisualStudio  -or  $norestore ) {
375-         $arguments   +=  "  --no-restore" 
375+         $args   +=  "  --no-restore" 
376376    }
377377
378378    if  (-not  $noVisualStudio ) {
379-         $arguments   +=  "  --no-build" 
379+         $args   +=  "  --no-build" 
380380    }
381381
382-     $arguments   +=  "  $settings " 
382+     $args   +=  "  $settings " 
383383
384384    if  ($asBackgroundJob ) {
385385        Write-Host 
386-         Write-Host (" Starting on the background: $arguments  " 
386+         Write-Host (" Starting on the background: $args  " 
387387        Write-Host (" ------------------------------------" 
388388        Start-Job  - ScriptBlock {
389-             $argArray  =  $using :arguments   -Split  "  " 
389+             $argArray  =  $using :args   -Split  "  " 
390390            &  $using :dotnetExe  $argArray 
391391            if  ($LASTEXITCODE  -ne  0 ) {
392392                throw  " Command failed to execute with exit code $ ( $LASTEXITCODE ) : $using :dotnetExe  $using :args " 
393393            }
394394        }
395395    } else  {
396-         Write-Host (" $arguments  " 
397-         Exec- Console $dotnetExe  $arguments  
396+         Write-Host (" $args  " 
397+         Exec- Console $dotnetExe  $args  
398398    }
399399}
400400
@@ -601,23 +601,23 @@ try {
601601
602602    if  ($testCoreClr ) {
603603        $cpuLimit  =  if  ($ci ) { " -m:2 -- xUnit.MaxParallelThreads=0.25x" else  { " " 
604-         TestUsingMSBuild - path  " $RepoRoot \FSharp.sln" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" - settings $cpuLimit 
604+         TestUsingMSBuild - testProject  " $RepoRoot \FSharp.sln" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" - settings $cpuLimit 
605605    }
606606
607607    if  ($testDesktop  -and  $ci ) {
608-         $bgJob  =  TestUsingMSBuild - path  " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\" - asBackgroundJob $true 
608+         $bgJob  =  TestUsingMSBuild - testProject  " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\" - asBackgroundJob $true 
609609
610-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
611-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\" 
612-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework   - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\" 
613-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Build.UnitTests\" 
614-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\" 
610+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
611+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\" 
612+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework   - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\" 
613+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Build.UnitTests\" 
614+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\" 
615615
616616        Receive - job $bgJob 
617617    }
618618
619619    if  ($testDesktop  -and  -not  $ci  ) {
620-         TestUsingMSBuild - path  " $RepoRoot \FSharp.sln" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
620+         TestUsingMSBuild - testProject  " $RepoRoot \FSharp.sln" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
621621    }
622622
623623    if  ($testFSharpQA ) {
@@ -648,50 +648,50 @@ try {
648648    }
649649
650650    if  ($testFSharpCore ) {
651-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\" 
652-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\" 
651+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\" 
652+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Core.UnitTests\" 
653653    }
654654
655655    if  ($testCompiler ) {
656-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
657-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
658-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\" 
659-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\" 
656+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
657+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
658+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\" 
659+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\" 
660660    }
661661
662662
663663    if  ($testCompilerComponentTests ) {
664-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
665-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
664+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
665+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.ComponentTests\" 
666666    }
667667
668668
669669    if  ($testCompilerService ) {
670-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\" 
671-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\" 
670+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\" 
671+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Service.Tests\" 
672672    }
673673
674674    if  ($testCambridge ) {
675-         TestUsingMSBuild - path  " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\" 
676-         TestUsingMSBuild - path  " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\" 
675+         TestUsingMSBuild - testProject  " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :coreclrTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\" 
676+         TestUsingMSBuild - testProject  " $RepoRoot \tests\fsharp\FSharpSuite.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharpSuite.Tests\" 
677677    }
678678
679679    if  ($testScripting ) {
680-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework   - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\" 
681-         TestUsingMSBuild - path  " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework   - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\" 
680+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :coreclrTargetFramework   - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\" 
681+         TestUsingMSBuild - testProject  " $RepoRoot \tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework   - testadapterpath " $ArtifactsDir \bin\FSharp.Compiler.Private.Scripting.UnitTests\" 
682682    }
683683
684684    if  ($testEditor  -and  -not  $noVisualStudio ) {
685-         TestUsingMSBuild - path  " $RepoRoot \vsintegration\tests\FSharp.Editor.Tests\FSharp.Editor.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Editor.Tests\FSharp.Editor.Tests.fsproj" 
685+         TestUsingMSBuild - testProject  " $RepoRoot \vsintegration\tests\FSharp.Editor.Tests\FSharp.Editor.Tests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Editor.Tests\FSharp.Editor.Tests.fsproj" 
686686    }
687687
688688    if  ($testVs  -and  -not  $noVisualStudio ) {
689-         TestUsingMSBuild - path  " $RepoRoot \vsintegration\tests\UnitTests\VisualFSharp.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\VisualFSharp.UnitTests\" 
689+         TestUsingMSBuild - testProject  " $RepoRoot \vsintegration\tests\UnitTests\VisualFSharp.UnitTests.fsproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\VisualFSharp.UnitTests\" 
690690    }
691691
692692
693693    if  ($testIntegration ) {
694-         TestUsingMSBuild - path  " $RepoRoot \vsintegration\tests\FSharp.Editor.IntegrationTests\FSharp.Editor.IntegrationTests.csproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Editor.IntegrationTests\" 
694+         TestUsingMSBuild - testProject  " $RepoRoot \vsintegration\tests\FSharp.Editor.IntegrationTests\FSharp.Editor.IntegrationTests.csproj" - targetFramework $script :desktopTargetFramework  - testadapterpath " $ArtifactsDir \bin\FSharp.Editor.IntegrationTests\" 
695695    }
696696
697697    if  ($testAOT ) {
0 commit comments