Commit 5038d77
committed
Ensure only direct dependencies are exposed as analyzer props
See https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Build.Tasks/NuGet.targets#L566
We need to filter the restore graph by the ProjectUniqueName that matches the current project, since P2P references bring the transitive graph.
Analyzers can now check for an analyzer option property named `build_property.My_Package` (for a package named `My.Package`).1 parent dbf1cb0 commit 5038d77
1 file changed
Lines changed: 8 additions & 3 deletions
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | | - | |
50 | | - | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
0 commit comments