From 925dd99ff78e0337c94a7f7a5ca88939fb144dbc Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Tue, 29 Oct 2019 13:43:23 +0100 Subject: [PATCH] PS: Fix not using newest installed Unity version --- Il2CppTests/generate-binaries.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Il2CppTests/generate-binaries.ps1 b/Il2CppTests/generate-binaries.ps1 index 845a873..4b807fb 100644 --- a/Il2CppTests/generate-binaries.ps1 +++ b/Il2CppTests/generate-binaries.ps1 @@ -6,11 +6,11 @@ # Requires Android NDK r13b or newer for Android test builds (https://developer.android.com/ndk/downloads) # Path to C¤ compiler (14.0 = Visual Studio 2017, 15.0 = Visual Studio 2019 etc.) -$CSC = (gci 'C:\Program Files (x86)\MSBuild\*\Bin\csc.exe' | sort name)[-1].FullName +$CSC = (gci 'C:\Program Files (x86)\MSBuild\*\Bin\csc.exe' | sort FullName)[-1].FullName # Path to latest installed version of Unity # The introduction of Unity Hub changed the base path of the Unity editor -$UnityPath = (gci 'C:\Program Files\Unity\Hub\Editor\*\Editor\Data' | sort name)[-1].FullName +$UnityPath = (gci 'C:\Program Files\Unity\Hub\Editor\*\Editor\Data' | sort FullName)[-1].FullName # Calculate Unity paths $il2cpp = $UnityPath + '\il2cpp\build\il2cpp.exe'