Skip to content

Commit 5c70831

Browse files
committed
refactor: replace ILLink.Descriptors.xml with embedded resource and remove transitive props file
1 parent d60419e commit 5c70831

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

src/LocalStack.Client.Extensions/LocalStack.Client.Extensions.csproj

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,14 @@
2525
</PropertyGroup>
2626

2727
<ItemGroup>
28-
<!-- Root descriptor at package root -->
29-
<None Include="ILLink.Descriptors.xml"
30-
Pack="true"
31-
PackagePath="" />
32-
33-
<!-- Transitive props goes into buildTransitive folder -->
34-
<None Include="buildTransitive\\LocalStack.Client.Extensions.props"
35-
Pack="true"
36-
PackagePath="buildTransitive\\" />
28+
<EmbeddedResource Include="ILLink.Descriptors.xml" LogicalName="ILLink.Descriptors.xml" />
3729
</ItemGroup>
3830

39-
4031
<ItemGroup>
4132
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup"/>
4233

4334
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" VersionOverride="3.1.32"/>
4435
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" VersionOverride="3.1.32"/>
45-
<!-- <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" VersionOverride="3.1.32"/>-->
4636
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="3.1.32"/>
4737
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" VersionOverride="3.1.32"/>
4838

src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ public static class ServiceCollectionExtensions
44
{
55
private const string LocalStackSectionName = "LocalStack";
66

7+
#if NET8_0_OR_GREATER
8+
[RequiresUnreferencedCode("ConfigurationBinder.Bind() sets options via reflection; keep non‑public setters or suppress in AOT build.")]
9+
#endif
710
public static IServiceCollection AddLocalStack(this IServiceCollection collection, IConfiguration configuration)
811
{
912
collection.Configure<LocalStackOptions>(options => configuration.GetSection(LocalStackSectionName).Bind(options, c => c.BindNonPublicProperties = true));

src/LocalStack.Client.Extensions/buildTransitive/LocalStack.Client.Extensions.props

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)