Skip to content

Commit b23e07e

Browse files
committed
feat: Auto-inject DiscoverMappersAttribute via targets file
1 parent 9b47986 commit b23e07e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

ProjectR.Generator/ProjectR.Generator.csproj

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

1616
<ItemGroup>
1717
<None Include="..\README.md" Pack="true" PackagePath="\" />
18+
<None Include="build\ProjectR.Generator.targets" Pack="true" PackagePath="build" />
1819
</ItemGroup>
1920

2021
<ItemGroup>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<ItemGroup Condition="'$(DisableProjectRAutoDiscovery)' == ''">
3+
<AssemblyAttribute Include="ProjectR.Attributes.DiscoverMappersAttribute" />
4+
</ItemGroup>
5+
</Project>

0 commit comments

Comments
 (0)