Describe the bug
When adding Dapper.Aot on a project A, all project referencing project A will have the Dapper.aot analyzer enable and trigger the DAP001 on them.
I tried to play with PrivateAssets attribute of PackageReference but does not seem to work. Using PrivateAssets.All fail at runtime because the generated code use method defined in Dapper.Aot.dll
Where are you seeing this?
To Reproduce
See screenshot
Expected behavior
Have a way to not leak roslyn analyzer as transitive dependency.
I want to use the source generator in my lib. But not in other app that use my nuget package
Screenshots
Additional context
Dapper.Aot have been added to Hangfire.Postgres lib. But some people can use it as it enable Dapper.Aot in their app when referencing HF.PG nuget package
hangfire-postgres/Hangfire.PostgreSql#416
Describe the bug
When adding Dapper.Aot on a project A, all project referencing project A will have the Dapper.aot analyzer enable and trigger the DAP001 on them.
I tried to play with
PrivateAssetsattribute ofPackageReferencebut does not seem to work. Using PrivateAssets.All fail at runtime because the generated code use method defined in Dapper.Aot.dllWhere are you seeing this?
To Reproduce
See screenshot
Expected behavior
Have a way to not leak roslyn analyzer as transitive dependency.
I want to use the source generator in my lib. But not in other app that use my nuget package
Screenshots
Additional context
Dapper.Aot have been added to Hangfire.Postgres lib. But some people can use it as it enable Dapper.Aot in their app when referencing HF.PG nuget package
hangfire-postgres/Hangfire.PostgreSql#416