-
Notifications
You must be signed in to change notification settings - Fork 252
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
[Client bug]: dotnet publish with /p:PublishTrimmed=true never finishes #1811
Comments
I have the same problem. I created a new MAUI project, added the Microsoft.Graph 4.0.0 nuget and compiled in release. It took 12 minutes. Any workaround? |
We have removed the SDK and call the endpoints with a http client directly. |
Thanks, we had thought to do the same, but we have downgraded to version 4.1.0 (the one we were using in Xamarin) and we managed to compile in release, although it took 30 minutes. |
Same issue here with the dotnet publish command hanging on blazor wasm self-hosted application after adding graph v5, have tried multiple versions 5.3 to 5.5. Local and Azure Devops still fail, tried on multiple projects, removing the Graph dependency totally clears out the problem. Doing nothing but adding the graph nuget package to an existing application takes my publish command time from ~5min, to over an hour until it times itself out. Going to follow @drossoft and revert back to v4 where I have other applications whose pipelines are running fine. |
unfortunately, version 4.1 is not compatible with MAUI: {System.TypeLoadException: Could not resolve type with token 01000023 from typeref (expected class 'System.Threading.Tasks.ValueTask I guess I will have to switch to http client :( |
https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/graph-api?view=aspnetcore-7.0&pivots=named-client-graph-api not specifically for MAUI, but hopefully this gives a good idea and can maybe help you get going. |
Thanks @jbartlettii ! I'll take a look |
We're also reproing this. This has been triaged but nobody is assigned. How does your planning work, or, what happens next @andrueastman? |
This should be resolved via #2182 and release https://www.nuget.org/packages/Microsoft.Graph/5.32.0 |
Describe the bug
When using the Microsoft.Graph Package in an .NET MAUI Blazor project, publishing the Android or the iOS app with
PublishTrimmed
enabled never finishes.With
PublishTrimmed
andRunAOTCompilation
disabed it works. But then we can't build iOS apps:dotnet publish -c Release -f net7.0-android /p:PublishTrimmed=false /p:RunAOTCompilation=false
To Reproduce
Steps to reproduce the behavior:
dotnet new maui-blazor -n MauiBlazorTest
dotnet add package Microsoft.Graph --version 5.5.0
Optimizing assemblies for size. This process might take a while.
. All CPU and Memory (32gb) is used up and the command never finishes (we have let it run several hours). Same result on different machines and on Azure Pipeline CI builds.Expected behavior
Publishing should finish and produce *.apk and *.aab bundles.
Client version
Microsoft.Graph 5.5.0
Desktop:
Additional context
The text was updated successfully, but these errors were encountered: