Open
Description
I have upgraded a Blazor client app from .net 6 to .net 7
and I'm getting this while building a container image
Error NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false.
I am using this in my DockerFile
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base
Adding
PublishTrimmed false PublishTrimmed
to the blazor client project file does "fix" the issue, but im not really sure what the actual issue is?
https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/
Refers to the error, with no information.