maui-samples
maui-samples copied to clipboard
Cannot execute MyMauiApp.cll when starting a debugging session
Visual Studio Community 2022 for Mac Preview Version 17.4 Preview (17.4 build 715) Installation UUID: 2b1a9148-9f07-4e71-9f81-621afe4ffd6a
Runtime .NET 6.0.5 (64-bit) Architecture: X64
Roslyn (Language Service) 4.4.0-1.22371.1+c07f2571612b471671c809b5b0db59b0c37aab57
NuGet Version: 6.2.1.2
.NET SDK (x64) SDK: /usr/local/share/dotnet/sdk/6.0.400/Sdks SDK Versions: 6.0.400 6.0.100-rc.2.21505.57 5.0.408 5.0.201 3.1.422 3.1.407 MSBuild SDKs: /Applications/Visual Studio (Preview).app/Contents/MonoBundle/MSBuild/Current/bin/Sdks
.NET Runtime (x64) Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 6.0.8 6.0.0-rc.2.21480.5 5.0.17 5.0.4 3.1.28 3.1.13
Xamarin.Profiler '/Applications/Xamarin Profiler.app' not found
Updater Version: 11
Xamarin.Android Not Installed
Microsoft Build of OpenJDK Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk 11.0.12 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL
Eclipse Temurin JDK Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk 1.8.0.302 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL
Android SDK Manager Version: 17.4.0.24 Hash: b3b6672 Branch: remotes/origin/HEAD~1 Build date: 2022-08-04 16:27:22 UTC
Android Device Manager Version: 0.0.0.1179 Hash: 0f220c0 Branch: main Build date: 2022-08-04 16:27:22 UTC
Apple Developer Tools Xcode 13.4.1 (20504) Build 13F100
Xamarin.Mac Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
Xamarin.iOS Xamarin.iOS not installed. Can't find mtouch or the Version file at /Library/Frameworks/Xamarin.iOS.framework/Versions/Current.
Xamarin Designer Version: 17.4.0.32 Hash: 439b92ed7b Branch: remotes/origin/d17-4 Build date: 2022-08-04 16:27:17 UTC
Build Information Release ID: 1704000715 Git revision: 09071dadfc1b81e4f0e2c9505cd8a5ef0b41d312 Build date: 2022-08-04 16:24:56+00 Build branch: release-17.4 Build lane: release-17.4
Operating System Mac OS X 12.5.1 Darwin 21.6.0 Darwin Kernel Version 21.6.0 Wed Aug 10 14:25:27 PDT 2022 root:xnu-8020.141.5~2/RELEASE_X86_64 x86_64
Same project on Mac, will build but won't launch, displaying same error.
Same here except I'm on macOS Ventura (13.0)
Try installing the Xamarin.Android component from the VS4Mac installer. It shouldn’t be needed any more, but currently still is.
see https://github.com/dotnet/maui/issues/8894
The VS4Mac installer's Xamarin components are locked checked for me so they are already installed and it still doesn't work.
Hello Friends!, in my case, when I run my app from Terminal with dotnet build -t:Run -f net7.0-ios it work fine!!! but when I try using visual studio for Mac 17.4 I get this message: Can not execute MyMauiApp.cll the selected run mode is not supported for .net projects
I don't know the reason 😞
Same on 17.5.2 Stable and 17.6 Preview.
Same problem - Xamarin Android installed, VS for mac 17.5.5
The only solution for me was to clone the project again and in project properties -> general -> change the Output type for Executable again.
Seems more like a product issue, please report to the .NET MAUI repo for better visibility and we can get to help you! This samples repo does not have anyone actively monitoring it or any support. Hope this got resolved in the meanwhile!