Commit f92712d
authored
Nest snapshots by updating the SDK's None items (#1911)
Verify.AfterMicrosoftNetSdk.props added a None item per snapshot to carry
DependentUpon, on top of the item the SDK's **/* glob had already produced.
So every snapshot sat in None twice. DotNetProjectFile.Analyzers copies
@(None) into Content for its SonarQube integration in non-IDE builds, which
turned those into duplicate Content items and failed the build with
NETSDK1022.
The metadata is now applied with None Update to the SDK's item. The Include
remains only for snapshots the SDK did not glob, such as when default items
are disabled.
FileNestingTests run the SDK's CheckForDuplicateItems target alongside the
item evaluation, fail on any file listed twice, and cover a project that
promotes None to Content as well as one that declares html snapshots as
Content itself.
VerifyTests/Verify.Bunit#1081 parent 7ccba46 commit f92712d
5 files changed
Lines changed: 58 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
948 | 954 | | |
949 | | - | |
| 955 | + | |
| 956 | + | |
950 | 957 | | |
951 | 958 | | |
952 | 959 | | |
953 | 960 | | |
954 | 961 | | |
955 | 962 | | |
956 | 963 | | |
957 | | - | |
| 964 | + | |
958 | 965 | | |
959 | 966 | | |
960 | 967 | | |
961 | 968 | | |
962 | 969 | | |
963 | 970 | | |
964 | | - | |
| 971 | + | |
965 | 972 | | |
966 | 973 | | |
967 | 974 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
79 | 100 | | |
80 | 101 | | |
81 | 102 | | |
| |||
196 | 217 | | |
197 | 218 | | |
198 | 219 | | |
199 | | - | |
200 | | - | |
201 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
202 | 224 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 225 | + | |
| 226 | + | |
209 | 227 | | |
210 | | - | |
| 228 | + | |
211 | 229 | | |
212 | 230 | | |
213 | | - | |
| 231 | + | |
214 | 232 | | |
215 | 233 | | |
216 | 234 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | | - | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
23 | | - | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| |||
0 commit comments