Commit 697e210
committed
Fix overwriting of $(FundingPackageId) in targets
The existig Devlooped.Sponsors.targets had a bug in that it used the same property name the analyzer uses, for its temporary projection from @(FundingPackageId). This caused the property to overwritten, which manifested as soon as we bumped ThisAssembly.AssemblyInfo, which imports the buggy targets into the sample analyzer too now.
By using `_FundingPackage` as the property name instead, analyzers leveraging ThisAssembly won't have an issue from now on, and more importantly: we remove the limitation that only non-SLv2 versions of ThisAssembly could be used previously (unless you implemented an unintuitive workaround like we do in this commit in the Analyzer.csproj via the @(FundingPackageId) item, which won't be necessary from now on (as soon as we can bump again ThisAssembly).1 parent 0f551e3 commit 697e210
File tree
4 files changed
+20
-3
lines changed- samples/dotnet
- Analyzer
- SponsorLink/buildTransitive
- Tests
4 files changed
+20
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
38 | 53 | | |
0 commit comments