fiskaltrust/middleware-launcher

PublishTrimmed leads to Exception

Opened this issue · 0 comments

Describe the bug

Project Trimming leads to a runtime error due to grpc/grpc-dotnet#1470

To Reproduce

Add <PublishTrimmed>true</PublishTrimmed> to the .csproj file.

Exceptions (if any)

Generic implementation type 'Grpc.AspNetCore.Server.Internal.DefaultGrpcServiceActivator`1' has a DynamicallyAccessedMembers attribute applied to a generic argument type, but the service type 'Grpc.AspNetCore.Server.IGrpcServiceActivator`1' doesn't have a matching DynamicallyAccessedMembers attribute on its generic argument type.

Further technical details & context

  • Version of the Middleware Launcher: 2.0.0-poc.1
  • Operating system: Windows 10 x64