Skip to content

Commit ad4ce85

Browse files
committed
Move 'IsAotCompatible' property to project files.
1 parent c8b8954 commit ad4ce85

File tree

16 files changed

+10
-9
lines changed

16 files changed

+10
-9
lines changed

DependencyInjection/src/AppCoreNet.Extensions.DependencyInjection.Abstractions/AppCoreNet.Extensions.DependencyInjection.Abstractions.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFrameworks>net8.0;netstandard2.0;net462</TargetFrameworks>
55
<RootNamespace>AppCoreNet.Extensions.DependencyInjection</RootNamespace>
66
<Description>Provides extensions to the Microsoft.Extensions.DependencyInjection framework.</Description>
7+
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
78
</PropertyGroup>
89

910
<ItemGroup>

DependencyInjection/src/AppCoreNet.Extensions.DependencyInjection.AssemblyExtensions/AppCoreNet.Extensions.DependencyInjection.AssemblyExtensions.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFrameworks>net8.0;netstandard2.0;net462</TargetFrameworks>
55
<RootNamespace>AppCoreNet.Extensions.DependencyInjection</RootNamespace>
66
<Description>Provides assembly reflection extensions to the Microsoft.Extensions.DependencyInjection framework.</Description>
7+
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
78
</PropertyGroup>
89

910
<ItemGroup>

DependencyInjection/src/AppCoreNet.Extensions.DependencyInjection.AssemblyExtensions/AssemblyReflectionBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ public static class AssemblyReflectionBuilderExtensions
2020
/// <param name="builder">The <see cref="IServiceDescriptorReflectionBuilder"/>.</param>
2121
/// <param name="configure">The delegate to configure the <see cref="AssemblyServiceDescriptorResolver"/>.</param>
2222
/// <returns>The <see cref="IServiceDescriptorReflectionBuilder"/> to allow chaining.</returns>
23-
/// <exception cref="ArgumentNullException">Argument <paramref name="builder"/> is <c>null</c>. </exception>
23+
/// <exception cref="ArgumentNullException">Argument <paramref name="builder"/> or <paramref name="configure"/> is <c>null</c>.</exception>
2424
public static IServiceDescriptorReflectionBuilder Assemblies(
2525
this IServiceDescriptorReflectionBuilder builder,
26-
Action<AssemblyServiceDescriptorResolver>? configure = null)
26+
Action<AssemblyServiceDescriptorResolver> configure)
2727
{
2828
Ensure.Arg.NotNull(builder);
2929
Ensure.Arg.NotNull(configure);

DependencyInjection/src/AppCoreNet.Extensions.DependencyInjection.DependencyModelExtensions/AppCoreNet.Extensions.DependencyInjection.DependencyModelExtensions.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFrameworks>net8.0;netstandard2.0;net462</TargetFrameworks>
55
<RootNamespace>AppCoreNet.Extensions.DependencyInjection</RootNamespace>
66
<Description>Provides dependency context assembly reflection extensions to the Microsoft.Extensions.DependencyInjection framework.</Description>
7+
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
78
</PropertyGroup>
89

910
<ItemGroup>

DependencyInjection/src/Directory.Build.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
<PropertyGroup>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
6-
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
76
</PropertyGroup>
87

98
<ItemGroup>

Hosting/src/AppCoreNet.Extensions.Hosting.Abstractions/AppCoreNet.Extensions.Hosting.Abstractions.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFrameworks>net8.0;netstandard2.0;net462</TargetFrameworks>
55
<RootNamespace>AppCoreNet.Extensions.Hosting</RootNamespace>
66
<Description>Provides extensions to the Microsoft.Extensions.Hosting framework.</Description>
7+
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
78
</PropertyGroup>
89

910
<ItemGroup>

Hosting/src/AppCoreNet.Extensions.Hosting.Plugins.Abstractions/AppCoreNet.Extensions.Hosting.Plugins.Abstractions.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFrameworks>net8.0;netstandard2.0;net462</TargetFrameworks>
55
<RootNamespace>AppCoreNet.Extensions.Hosting.Plugins</RootNamespace>
66
<Description>Provides plugin extensions to the Microsoft.Extensions.Hosting framework.</Description>
7+
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
78
</PropertyGroup>
89

910
<ItemGroup>

Hosting/src/AppCoreNet.Extensions.Hosting.Plugins.AspNetCore.Mvc/AppCoreNet.Extensions.Hosting.Plugins.AspNetCore.Mvc.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
55
<Description>Provides MVC plugin extensions to the Microsoft.Extensions.Hosting framework.</Description>
6-
<!-- Without this, ILLink analyzers are not added, even though 'IsAotComptabile' is set in the parent 'Directory.Build.props' -->
76
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
87
</PropertyGroup>
98

Hosting/src/AppCoreNet.Extensions.Hosting.Plugins/AppCoreNet.Extensions.Hosting.Plugins.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
55
<Description>Provides plugin extensions to the Microsoft.Extensions.Hosting framework.</Description>
6-
<!-- Without this, ILLink analyzers are not added, even though 'IsAotComptabile' is set in the parent 'Directory.Build.props' -->
76
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
87
</PropertyGroup>
98

Hosting/src/AppCoreNet.Extensions.Hosting/AppCoreNet.Extensions.Hosting.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>net8.0;netstandard2.0;net462</TargetFrameworks>
55
<Description>Provides extensions to the Microsoft.Extensions.Hosting framework.</Description>
6+
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
67
</PropertyGroup>
78

89
<ItemGroup>

0 commit comments

Comments
 (0)