Redth / dotnet-maui-check

.NET MAUI Check tool
MIT License
479 stars 79 forks source link

MAUI-check doesn't detect installed tooling, installs it in odd location #159

Open Ghostbird opened 2 years ago

Ghostbird commented 2 years ago

My ANDROID_SDK_ROOT is set to ${HOME}/android-toolchain/sdk. When I run maui-check it doesn't find anything. When I allow it to “fix” things, it creates ${HOME}/Library/Android/sdk instead and installs the android sdk there, with the same structure that my ${HOME}/android-toolchain/sdk has.

It's not a big deal, as I can just delete the ${HOME}/Library folder again to clean it up. However, it also means that the tool fails to meaningfully check my installation.

Note: After the tool has "correctly" set-up my system, it still doesn't work, because my ANDROID_SDK_ROOT is not ${HOME}/Library/Android/sdk.

System Information

This is the system information, without any installations by the tool. You can see that the dotnet workload android-33 is already installed (it is in ${HOME}/android-toolchain/sdk because that's the ANDROID_SDK_ROOT).

$ uname -a
Linux gijsbertdebian 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
$ dotnet --version
6.0.403
$ dotnet workload list

Installed Workload Ids      Manifest Version      Installation Source
---------------------------------------------------------------------
android-33                  32.0.476/6.0.400      SDK 6.0.400        
maui-android                6.0.547/6.0.400       SDK 6.0.400        

Use `dotnet workload search` to find additional workloads to install.