Skip to content

Update LocalizationBuilderExtensions.cs #12

Update LocalizationBuilderExtensions.cs

Update LocalizationBuilderExtensions.cs #12

Triggered via push May 20, 2024 21:05
Status Failure
Total duration 3m 28s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

1 error and 11 warnings
deploy
Process completed with exit code 1.
deploy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: microsoft/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
deploy: src/Lepo.i18n/IO/EmbeddedResourceReader.cs#L25
Converting null literal or possible null value to non-nullable type.
deploy: src/Lepo.i18n/IO/EmbeddedResourceReader.cs#L30
Possible null reference argument for parameter 'oldValue' in 'string string.Replace(string oldValue, string? newValue, StringComparison comparisonType)'.
deploy: src/Lepo.i18n/IO/EmbeddedResourceReader.cs#L25
Converting null literal or possible null value to non-nullable type.
deploy: src/Lepo.i18n/IO/EmbeddedResourceReader.cs#L30
Possible null reference argument for parameter 'oldValue' in 'string string.Replace(string oldValue, string? newValue, StringComparison comparisonType)'.
deploy: src/Lepo.i18n.Json/LocalizationBuilderExtensions.cs#L75
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(String, 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.
deploy: src/Lepo.i18n.Json/Converters/TranslationsContainerConverter.cs#L43
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(Utf8JsonWriter, 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.
deploy: src/Lepo.i18n.Json/LocalizationBuilderExtensions.cs#L87
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(String, 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.
deploy: src/Lepo.i18n.Json/Converters/TranslationsContainerConverter.cs#L43
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(Utf8JsonWriter, 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.
deploy: src/Lepo.i18n.Json/LocalizationBuilderExtensions.cs#L75
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(String, 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.
deploy: src/Lepo.i18n.Json/LocalizationBuilderExtensions.cs#L87
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(String, 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.