From da9ecaec9811582a441fcb336194a9e6578c905d Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Sun, 9 Dec 2018 14:44:16 -0600 Subject: [PATCH] Fix build not detecting dotnet version --- .gitignore | 3 +++ build.ps1 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index db96b63..a71fe14 100644 --- a/.gitignore +++ b/.gitignore @@ -260,3 +260,6 @@ paket-files/ __pycache__/ *.pyc **/launchSettings.json + + +global.json \ No newline at end of file diff --git a/build.ps1 b/build.ps1 index b61336a..304207e 100644 --- a/build.ps1 +++ b/build.ps1 @@ -45,7 +45,7 @@ try { } # If dotnet is installed locally, and expected version is not set or installation matches the expected version if ($null -ne (Get-Command "dotnet" -ErrorAction SilentlyContinue) -and ` - (!(Test-Path variable:DotNetVersion) -or $(& cmd /c 'dotnet --version 2>&1') -eq $DotNetVersion)) { + (!(Test-Path variable:DotNetVersion) -or $(& cmd.exe /c 'dotnet --version 2>&1') -eq $DotNetVersion)) { $env:DOTNET_EXE = (Get-Command "dotnet").Path } else {