Skip to content

Commit

Permalink
register path64
Browse files Browse the repository at this point in the history
  • Loading branch information
seveneleven committed Oct 24, 2024
1 parent 77cdde9 commit 7cfffe9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .build/BuildToolkit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $NugetPackageArtifacts = "$ArtifactsDir\Packages";
. "$PSScriptRoot\Output.ps1";

# Define Tools
$global:DotNetCli = "dotnet";
$global:DotNetCli = "dotnet.exe";
$global:NugetCli = "nuget.exe";
$global:GitCli = "";
$global:OpenCoverCli = "$BuildTools\OpenCover.$OpenCoverVersion\tools\OpenCover.Console.exe";
Expand Down Expand Up @@ -331,10 +331,11 @@ function Invoke-CoverTests($SearchPath = $RootPath, $SearchFilter = "*.csproj",
$openCoverAgs = "-target:$global:NunitCli", "-targetargs:/config:$env:MORYX_BUILD_CONFIG /result:$nunitXml $testAssembly"
}

$openCoverAgs += "-log:Debug", "-register:administrator", "-output:$openCoverXml", "-hideskipped:all", "-skipautoprops";
$openCoverAgs += "-log:Debug", "-register:path64", "-output:$openCoverXml", "-hideskipped:all", "-skipautoprops";
$openCoverAgs += "-returntargetcode" # We need the nunit return code
$openCoverAgs += "-filter:$includeFilter $excludeFilter"

Write-Host "$global:OpenCoverCli $openCoverAgs"
& $global:OpenCoverCli $openCoverAgs

$exitCode = [int]::Parse($LastExitCode);
Expand Down

0 comments on commit 7cfffe9

Please sign in to comment.