Open Closed

Build and Run error on MAUI project #3716


User avatar
0
darutter created

Using abp version 6.0.0-rc.4 I created a new project with a MAUI mobile app template. The project appears to create successfully, but when I try to run the MAUI project in debug mode I get the errors that are attached

Please let me know how to resolve these errors.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Can you remove PublishTrimmed or set it to false.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    darutter created

    The above errors occur when I don't have the PublishTrimmed property in the .csproj file. If I put the property in the .csproj file and set the value to false I get this error:

    /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.4.447/targets/Xamarin.Shared.Sdk.targets(3,3): Error: iOS projects must build with PublishTrimmed=true. Current value: false. (BCFOAssistant.Maui)

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Sorry, I could not reproduce the problem, it might be related to your environment.

    You can use the maui check to check your environment. see: https://github.com/Redth/dotnet-maui-check

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 21, 2026, 06:18
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.