Skip to content

Commit f5c94c0

Browse files
committed
Add AOT/trim metadata exposure for NuGet consumers
- Created buildTransitive/TypeGuesser.props to flow AOT/trim compatibility info - Added IsPackable=false to benchmarks project (prevents accidental packaging) - buildTransitive props file auto-imports into consuming projects - Exposes TypeGuesser_IsAotCompatible and TypeGuesser_IsTrimmable properties This allows package consumers to detect TypeGuesser's AOT/trim compatibility and make informed decisions about their own build configurations.
1 parent ee43888 commit f5c94c0

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

TypeGuesser/TypeGuesser.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
<ItemGroup>
2323
<None Include="..\README.md" Pack="true" PackagePath="\" />
24+
<None Include="buildTransitive\TypeGuesser.props" Pack="true" PackagePath="buildTransitive\" />
2425
<Compile Include="..\SharedAssemblyInfo.cs" Link="SharedAssemblyInfo.cs" />
2526
</ItemGroup>
2627

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
<PropertyGroup>
3+
<!-- TypeGuesser is fully compatible with AOT and trimming -->
4+
<TypeGuesser_IsAotCompatible>true</TypeGuesser_IsAotCompatible>
5+
<TypeGuesser_IsTrimmable>true</TypeGuesser_IsTrimmable>
6+
</PropertyGroup>
7+
</Project>

benchmarks/TypeGuesser.Benchmarks.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<Nullable>enable</Nullable>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<ServerGarbageCollection>true</ServerGarbageCollection>
10+
<IsPackable>false</IsPackable>
1011
</PropertyGroup>
1112

1213
<ItemGroup>

0 commit comments

Comments
 (0)