maui icon indicating copy to clipboard operation
maui copied to clipboard

MAC - VSC - ILLink.Task - doesnt make build

Open pininfarino opened this issue 1 month ago • 5 comments

Description

I have a problem here. The problem occurs on my older project and the same behavior occurs when a new clean project is created in Windows Visual Studio 2026 (Mac-Parallels desktop), there you can only build for android.

When I open this project at old or completely new for .net 10 in Visual studio code with the correct .NET MAUI extensions (it worked without problems before) it gives me an error

Microsoft.NET.ILLink.Tasks

I tried everything, completely uninstalling VSC and Android Studio and Xcode and all available options and I tried to put implicitly in .csproj

and it doesn't work. I can't build and it still requires Microsoft.NET.ILLink.Tasks.

Image Image

Finally, with Visual Studio 2026 (18.0.0 -18.0.2 ) -> Windows 11 (Mac - Parallels Desktop) Hot reload does not work on a physical Android device. (I tried it on a Samsung Galaxy S21 Ultra - One UI -7.0 - Android -15)

Steps to Reproduce

MauiAppka.csproj.zip

  1. Create a new MAUI .Net 10 project in VS 2026 in Windows 11 Pro (I used Parallels desktop)
  2. Try to build for Android (it will succeed)
  3. Open the same project in MacBook VS Code with the correct extensions for MAUI
  4. Try to build for iOS or Android and it will give an error

Link to public reproduction project repository

No response

Version with bug

10.0.10

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.100 SR10

Affected platforms

iOS, Android

Affected platform versions

Visual Studio 2026 (Mac - Windows 11 Pro - Parralels Desketop) - MAC - Visual Studio Code)

Did you find any workaround?

I have tried all the methods and without result.

Relevant log output


pininfarino avatar Dec 05 '25 15:12 pininfarino

I've tried everything

  • dotnet restore
  • dotnet workload restore /repair

and lots of classic issue repair steps.

pininfarino avatar Dec 06 '25 00:12 pininfarino

I tryed on my clasic table PC Windows 11 Pro

  • new install VSC
  • install all packages
  • dotnet workload install maui and similar issue :(

` .NET MAUI SDK verification failed with an unexpected error: A valid dotnet installation could not be found on the PATH. Details: Failed to parse dotnet base path information. If you cannot solve this problem, please report an issue from the Help menu. ANDROID ENVIRONMENT STATUS: 12/7/2025, 12:43:52 PM

Here is the status of your Android development environment:

Required components:

✓ Java SDK - INSTALLED (version '21.0.8')
	- Path: 'C:\Program Files\Android\openjdk\jdk-21.0.8' (Visual Studio)

✓ Android SDK - INSTALLED
	- Path: 'C:\Program Files (x86)\Android\android-sdk' (VSCode setting)

	✓ cmdline-tools - INSTALLED (version '19.0')
	✓ platform-tools - INSTALLED (version '36.0.0')

Optional components:

✓ Android Virtual Device (AVD) - COMPLETE
	- AVD Path: 'C:\Users\regis\.android\avd'
	- AVD devices - DETECTED ('Pixel9Pro-API36')

	✓ system-images/android-36/google_apis_playstore/x86_64 - INSTALLED (version '6')

IMPORTANT:

  • If you are sharing the Android SDK location with Visual Studio, the recommended way to install/update the SDK and accept licenses is by using the Android SDK Manager in Visual Studio.
  • If you are sharing the Java SDK location with Visual Studio, the recommended way to install/repair the SDK is by using the Visual Studio installer.

`

pininfarino avatar Dec 07 '25 11:12 pininfarino

Hey @pininfarino sorry you're running into this. I hate to say it, but I do think this is an issue that is specific to your environment which are typically hard to figure out.

A valid dotnet installation could not be found on the PATH. Details: Failed to parse dotnet base path information.

This indicated that dotnet is not part of your environment PATH variable so it can't be found just anywhere in your terminal. In Visual Studio Code, if you have the .NET Install Tool (an extension I think), you can install dotnet system-wide, that should help with that part

Image

Then you can run dotnet workload install maui and see what that does.

Did you follow all the steps here? https://learn.microsoft.com/dotnet/maui/get-started/installation?view=net-maui-10.0&tabs=visual-studio-code

As for the original issue, you can see that this version of ILLink.Task is available here: https://www.nuget.org/packages/Microsoft.NET.ILLink.Tasks/10.0.0

Can you try dotnet restore --source https://api.nuget.org/v3/index.json? and see if that works?

jfversluis avatar Dec 09 '25 11:12 jfversluis

Hi @@pininfarino. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Thank you very much for the advice, it directed me on the right path. And all of them work on MAC VSC.

But a few things for Visual Studio (2026) with Parallels desktop for MAC with android device simulator do not work but that is not necessary.

But thank you very much for the help! @jfversluis

pininfarino avatar Dec 10 '25 16:12 pininfarino