8000 NETSDK1144: Optimizing assemblies for size failed .NET 7 · Issue #3119 · dotnet/linker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
NETSDK1144: Optimizing assemblies for size failed .NET 7 #3119
Open
@Clive321A

Description

@Clive321A

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0