Skip to content
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

Error when running MyFirstMauiApp saying "Optimizing assemblies for size failed" in vscode. #22449

Open
siratsapon opened this issue May 16, 2024 · 3 comments
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) s/needs-info Issue needs more info from the author

Comments

@siratsapon
Copy link

I cannot execute the C# MAUI example programme from this URL: https://dotnet.microsoft.com/en-us/learn/maui/first-app-tutorial/run.

An error message will show stating that "Optimising assemblies for size failed." You can stop optimisation by setting the PublishTrimmed attribute to false. [/Users/...../MyFirstMauiApp/MyFirstMauiApp.csproj::TargetFramework=net8.0- maccatalyst]"

Please let me know how to repair it.

Thank you!

Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@Eilon Eilon added the area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) label May 17, 2024
@mattleibow mattleibow added the s/needs-info Issue needs more info from the author label May 30, 2024
@mattleibow
Copy link
Member

Can you attach a binlog?
https://github.com/xamarin/xamarin-macios/wiki/Diagnosis

Does it build from the command line?

Copy link
Contributor

Hi @siratsapon. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) s/needs-info Issue needs more info from the author
Projects
None yet
Development

No branches or pull requests

3 participants