Skip to content

Commit ac9d09b

Browse files
committed
Bump version to 1.0.0-beta.4 with AOT compatibility
- Add RequiresUnreferencedCode/RequiresDynamicCode attributes for AOT transparency - Remove AOT warning suppressions (no longer needed) - Version bump reflects AOT compatibility improvements (Issue #7)
1 parent dbbb90c commit ac9d09b

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@
6666
<!-- CA1852: Seal types (not applicable for test base classes) -->
6767
<!-- CA2007: ConfigureAwait (not needed for console applications and tests) -->
6868
<!-- RCS1102: Make class static (test classes with static methods are discovered by Fixie) -->
69-
<!-- IL2026, IL2067, IL2070, IL2075, IL3050, IL2104, IL3053: AOT warnings (not yet implemented) -->
70-
<NoWarn>$(NoWarn);CA1014;CA1031;CA1052;CA1515;CA1707;CA1724;CA1812;CA1848;CA1852;CA2007;RCS1102;IL2026;IL2067;IL2070;IL2075;IL3050;IL2104;IL3053</NoWarn>
69+
<NoWarn>$(NoWarn);CA1014;CA1031;CA1052;CA1515;CA1707;CA1724;CA1812;CA1848;CA1852;CA2007;RCS1102</NoWarn>
7170
</PropertyGroup>
7271

7372
<!-- Code analyzers applied to all projects -->

source/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<!-- Default package metadata (can be overridden in individual projects) -->
66
<PropertyGroup Label="Package Metadata">
7-
<PackageVersion>1.0.0-beta.3</PackageVersion>
7+
<PackageVersion>1.0.0-beta.4</PackageVersion>
88
<Authors>Steven T. Cramer</Authors>
99
<Company>TimeWarp Enterprises</Company>
1010
<Product>TimeWarp.OptionsValidation</Product>

source/timewarp-options-validation/extensions/service-collection-extensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public static class ServiceCollectionExtensions
3535
/// .ValidateOnStart();
3636
/// </code>
3737
/// </example>
38+
[RequiresUnreferencedCode("TOptions's dependent types may have their members trimmed. Ensure all required members are preserved.")]
39+
[RequiresDynamicCode("Binding strongly typed objects to configuration values may require generating dynamic code at runtime.")]
3840
public static OptionsBuilder<TOptions> AddFluentValidatedOptions<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TValidator>(
3941
this IServiceCollection services,
4042
IConfiguration configuration)

0 commit comments

Comments
 (0)