Skip to content

chore(build): 🛠 optimize publish settings for size #49

chore(build): 🛠 optimize publish settings for size

chore(build): 🛠 optimize publish settings for size #49

Triggered via push February 25, 2026 00:06
Status Success
Total duration 5m 4s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
publish: src/EcoFlow.Mqtt.Api/Services/InternalHttpApi.cs#L34
Using member 'System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync<T>(HttpContent, CancellationToken)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.
publish: src/EcoFlow.Mqtt.Api/Services/InternalHttpApi.cs#L34
Using member 'System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync<T>(HttpContent, CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
publish: src/EcoFlow.Mqtt.Api/EntryPoint.cs#L71
Using member 'Microsoft.AspNetCore.Http.Results.Json<TValue>(TValue, JsonSerializerOptions, String, Int32?)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.
publish: src/EcoFlow.Mqtt.Api/EntryPoint.cs#L71
Using member 'Microsoft.AspNetCore.Http.Results.Json<TValue>(TValue, JsonSerializerOptions, String, Int32?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.
publish: src/EcoFlow.Mqtt.Api/EntryPoint.cs#L70
Using member 'System.Text.Json.JsonSerializer.SerializeToNode<TValue>(TValue, JsonSerializerOptions)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.
publish: src/EcoFlow.Mqtt.Api/EntryPoint.cs#L70
Using member 'System.Text.Json.JsonSerializer.SerializeToNode<TValue>(TValue, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
publish: src/EcoFlow.Mqtt.Api/EntryPoint.cs#L65
Using member 'Microsoft.AspNetCore.Http.Results.Json<TValue>(TValue, JsonSerializerOptions, String, Int32?)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.
publish: src/EcoFlow.Mqtt.Api/EntryPoint.cs#L65
Using member 'Microsoft.AspNetCore.Http.Results.Json<TValue>(TValue, JsonSerializerOptions, String, Int32?)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.
publish: src/EcoFlow.Mqtt.Api/EntryPoint.cs#L64
Using member 'System.Text.Json.JsonSerializer.SerializeToNode<TValue>(TValue, JsonSerializerOptions)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.
publish: src/EcoFlow.Mqtt.Api/EntryPoint.cs#L64
Using member 'System.Text.Json.JsonSerializer.SerializeToNode<TValue>(TValue, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.