Home > OS >  IL Trimmer Error in .NET MAUI Application
IL Trimmer Error in .NET MAUI Application

Time:12-31

When try to build my .net maui application in release mode. I am getting error like Severity code description project file line suppression state error il1012 il trimmer has encountered an unexpected error. Please report the issue at https://github.com/dotnet/linker/issues
Optimising assembly for size failed. And sometimes " fatal error in il linker out of memory ". But my ram is very fine occupancy at max 65%. So, what's happening?

Image description

But in Debug mode it's working perfectly.

I tried deleting obj and bin folder, clean solution, cleaned project, tried to build the project no success.

CodePudding user response:

I too had this issue. It was the page file that needs to be increased and got that fixed in my case..You can check if you page file size is set to automatic or custom.

  • Related