Add AOT Markup #2514
Annotations
10 warnings
Build DotNet:
src/Splat.DryIoc.Tests/DependencyResolverTests.cs#L275
Prefer the generic overload 'DryIoc.Registrator.RegisterInstance<T>(DryIoc.IRegistrator, T, DryIoc.IfAlreadyRegistered?, DryIoc.Setup, object)' instead of 'DryIoc.Registrator.RegisterInstance(DryIoc.IRegistrator, System.Type, object, DryIoc.IfAlreadyRegistered?, DryIoc.Setup, object)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263)
|
Build DotNet:
src/Splat.DryIoc.Tests/DependencyResolverTests.cs#L257
Prefer the generic overload 'Splat.DependencyResolverMixins.RegisterConstant<T>(Splat.IMutableDependencyResolver, T?, string?)' instead of 'Splat.DependencyResolverMixins.RegisterConstant(Splat.IMutableDependencyResolver, object?, System.Type?, string?)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263)
|
Build DotNet:
src/Splat.DryIoc.Tests/DependencyResolverTests.cs#L257
Prefer the generic overload 'Splat.DependencyResolverMixins.RegisterConstant<T>(Splat.IMutableDependencyResolver, T?, string?)' instead of 'Splat.DependencyResolverMixins.RegisterConstant(Splat.IMutableDependencyResolver, object?, System.Type?, string?)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263)
|
Build DotNet:
src/Splat.DryIoc.Tests/DependencyResolverTests.cs#L275
Prefer the generic overload 'DryIoc.Registrator.RegisterInstance<T>(DryIoc.IRegistrator, T, DryIoc.IfAlreadyRegistered?, DryIoc.Setup, object)' instead of 'DryIoc.Registrator.RegisterInstance(DryIoc.IRegistrator, System.Type, object, DryIoc.IfAlreadyRegistered?, DryIoc.Setup, object)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263)
|
Build DotNet:
src/Splat.Tests/ServiceLocation/BaseDependencyResolverTests.cs#L197
Prefer the generic overload 'Splat.ResolverMixins.RegisterConstantAnd<T>(Splat.IMutableDependencyResolver, T, string?)' instead of 'Splat.ResolverMixins.RegisterConstantAnd(Splat.IMutableDependencyResolver, object, System.Type, string?)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263)
|
Build DotNet:
src/Splat.Tests/ServiceLocation/BaseDependencyResolverTests.cs#L210
Prefer the generic overload 'Splat.ResolverMixins.RegisterConstantAnd<T>(Splat.IMutableDependencyResolver, T, string?)' instead of 'Splat.ResolverMixins.RegisterConstantAnd(Splat.IMutableDependencyResolver, object, System.Type, string?)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263)
|
Build DotNet:
src/Splat.Drawing/Platforms/ReflectionStubs.cs#L24
'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'System.Reflection.TypeInfo.GetDeclaredMethod(String)'. The parameter 'value' of method 'Splat.ReflectionStubs.GetMethod(Type, String, BindingFlags)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
Build DotNet:
src/Splat.Drawing/Platforms/ReflectionStubs.cs#L15
'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicFields', 'DynamicallyAccessedMemberTypes.NonPublicFields' in call to 'System.Reflection.TypeInfo.GetDeclaredField(String)'. The parameter 'value' of method 'Splat.ReflectionStubs.GetField(Type, String, BindingFlags)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
Build DotNet:
src/Splat.Drawing/Platforms/ReflectionStubs.cs#L27
'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'System.Type.GetMethod(String, BindingFlags)'. The return value of method 'System.Type.BaseType.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
Build DotNet:
src/Splat.Drawing/Platforms/ReflectionStubs.cs#L18
'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicFields', 'DynamicallyAccessedMemberTypes.NonPublicFields' in call to 'System.Type.GetField(String, BindingFlags)'. The return value of method 'System.Type.BaseType.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
Loading