-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The SDK Microsoft.NET.Runtime.MonoAOTCompiler.Task could not be found. #9176
Comments
Do you have a binlog? Have you tried clearing the nuget cache? A quick google search suggests that might help. |
bin_gmck.zip I tried building on my machine where I haven't had any problems building using VS. So I tried VS Code terminal with A quick google search suggests that might help. Didn't help me when I searched. |
@gmck the only way I can repo you issue is it I don't have the following in the project. (this is when building for release)
|
If this only happens on one machine, it's probably related to .NET workloads having some install failure. If you follow this to get your machine to a clean state: Then install the .NET MAUI workload in Visual Studio again, does the problem go away? |
@dellis1972 I have that true because I'm trying to use dotnet trace to collect a speedscope file - following Jonathon's video. I first hit this performance problem about a year ago see #8285. I gave up on net8.0-android back then and went back to X.A. to get my app (Android 14) into production. Now I'm back converting it to net8.0-android and the performance is just as bad as it was last year. @jonathanpeppers - I'm not interested in Maui, only Android, so do you still want me to do all that maui stuff? |
@gmck it depends on how you installed, did you use command-line or the Visual Studio installer? If you used Visual Studio, then there is only a top-level MAUI Visual Studio workload to choose from. |
Initially used VS installer. However, when it came to net8-android last year, I used your release notes which was the command-line. Very rarely do anything with the command-line. All upgrades to VS since on my machine have been VS. |
Please provide the requested |
@jonpryor |
Android framework version
net8.0-android
Affected platform version
VS 2022 17.10.5
Description
When I try and clone the GitHub repo of my app on a second machine I always get the above error. The same thing happens if I download it as a zip. The file exists at C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.113\targets\Microsoft.Android.Sdk.Aot.targets. Tried with VS preview versions as well and the same problem.
The app builds fine on my machine. I've deleted the repo and recreated it and it still fails
Steps to Reproduce
As above
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: