-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[RC1] Cannot build MAUI library #6052
Comments
can be reproduced on windows with vs 17.3.0 Preview 1.0 [32411.352.main]. |
Something with MSAL isn't happy with MAUI. Why is it trying to build for win10-arm? I have no need for that platform but I need MSAL on my app. |
Also if I remove the window targets from the csproj the error also goes away. |
I tried moving the MSAL dependency to a NET6 library. But that still causes the error even if the MAUI library doesn't have a direct dependency on MSAL. Guys MAUI is pretty cool but why does it have to break so often? This app was almost publish ready now I am back to 0 without MSAL working. |
Is there any way to exclude win10-arm and win10-arm-aot from the compilation without modifying MAUI? With like an addition to the csproj? I'd like to test RC1 but I cannot if I cannot use MSAL but I have 0 need to support win10-arm. It's like what? 2% of the marketshare of PCs on Windows? |
I was able to workaround this by moving all MSAL stuff to the main application and not in the library. It is something. |
Removed msal references in the MAUI library
I had the exact same issue while installing Microsoft.WindowsAppSDK 1.0.2 and 1.1.0-preview1 to .NET 6 WinForms app.
My workaround is to add following RuntimeIdentifiers property in csproj explicitly and avoid check for 'win-arm' and 'win10-arm-aot'. (I don't need ARM support for my app.)
It feels strange as I thought WindowsForms in .NET 6 supports ARM architecture too. |
This will be fixed in RC2 |
Description
I cannot build my MAUI library on RC1.
It was all working on Preview 14, now I get these errors:
2>C:\Program Files\dotnet\sdk\6.0.300-preview.22204.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(427,5): error NETSDK1082: There was no runtime pack for Microsoft.WindowsDesktop.App.WindowsForms available for the specified RuntimeIdentifier 'win10-arm'.
2>C:\Program Files\dotnet\sdk\6.0.300-preview.22204.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(427,5): error NETSDK1082: There was no runtime pack for Microsoft.WindowsDesktop.App.WindowsForms available for the specified RuntimeIdentifier 'win10-arm-aot'.
Steps to Reproduce
I have tried updating nugets, removing the vs folder, restarting VS. I don't know why this build error happens.
Version with bug
Release Candidate 1 (current)
Last version that worked well
Preview 14
Affected platforms
Android, Windows
Affected platform versions
API 30, Android 11, Windows 10.0.19041
Did you find any workaround?
Move all the MSAL related code to the main MAUI application away from your MAUI Library.
Relevant log output
The text was updated successfully, but these errors were encountered: