Skip to content

Commit 29358f9

Browse files
committed
Add PrivateAssets="all" for build-time dependencies
1 parent 6f97477 commit 29358f9

File tree

3 files changed

+6
-110
lines changed

3 files changed

+6
-110
lines changed

samples/ConsoleSample/packages.lock.json

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@
3131
"Microsoft.Extensions.Logging.Abstractions": "3.0.0"
3232
}
3333
},
34-
"Microsoft.Build.Tasks.Git": {
35-
"type": "Transitive",
36-
"resolved": "8.0.0",
37-
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
38-
},
39-
"Microsoft.CodeAnalysis.NetAnalyzers": {
40-
"type": "Transitive",
41-
"resolved": "9.0.0",
42-
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
43-
},
4434
"Microsoft.Extensions.Configuration.Abstractions": {
4535
"type": "Transitive",
4636
"resolved": "3.0.0",
@@ -83,20 +73,6 @@
8373
"resolved": "3.0.0",
8474
"contentHash": "6gwewTbmOh+ZVBicVkL1XRp79sx4O7BVY6Yy+7OYZdwn3pyOKe9lOam+3gXJ3TZMjhJZdV0Ub8hxHt2vkrmN5Q=="
8575
},
86-
"Microsoft.SourceLink.Common": {
87-
"type": "Transitive",
88-
"resolved": "8.0.0",
89-
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
90-
},
91-
"Microsoft.SourceLink.GitHub": {
92-
"type": "Transitive",
93-
"resolved": "8.0.0",
94-
"contentHash": "G5q7OqtwIyGTkeIOAc3u2ZuV/kicQaec5EaRnc0pIeSnh9LUjj+PYQrJYBURvDt7twGl2PKA7nSN0kz1Zw5bnQ==",
95-
"dependencies": {
96-
"Microsoft.Build.Tasks.Git": "8.0.0",
97-
"Microsoft.SourceLink.Common": "8.0.0"
98-
}
99-
},
10076
"Newtonsoft.Json": {
10177
"type": "Transitive",
10278
"resolved": "11.0.1",
@@ -105,9 +81,7 @@
10581
"hangfire.inmemory": {
10682
"type": "Project",
10783
"dependencies": {
108-
"Hangfire.Core": "[1.8.0, )",
109-
"Microsoft.CodeAnalysis.NetAnalyzers": "[9.0.0, )",
110-
"Microsoft.SourceLink.GitHub": "[8.0.0, )"
84+
"Hangfire.Core": "[1.8.0, )"
11185
}
11286
}
11387
}

src/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
</ItemGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0" />
20+
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0" PrivateAssets="all" />
2121
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" PrivateAssets="all" />
22-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
22+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
2323
</ItemGroup>
2424

2525
<PropertyGroup>

tests/Hangfire.InMemory.Tests/packages.lock.json

Lines changed: 3 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,6 @@
7272
"Newtonsoft.Json": "11.0.1"
7373
}
7474
},
75-
"Microsoft.Build.Tasks.Git": {
76-
"type": "Transitive",
77-
"resolved": "8.0.0",
78-
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
79-
},
80-
"Microsoft.CodeAnalysis.NetAnalyzers": {
81-
"type": "Transitive",
82-
"resolved": "9.0.0",
83-
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
84-
},
8575
"Microsoft.CodeCoverage": {
8676
"type": "Transitive",
8777
"resolved": "17.8.0",
@@ -97,20 +87,6 @@
9787
"resolved": "1.1.0",
9888
"contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg=="
9989
},
100-
"Microsoft.SourceLink.Common": {
101-
"type": "Transitive",
102-
"resolved": "8.0.0",
103-
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
104-
},
105-
"Microsoft.SourceLink.GitHub": {
106-
"type": "Transitive",
107-
"resolved": "8.0.0",
108-
"contentHash": "G5q7OqtwIyGTkeIOAc3u2ZuV/kicQaec5EaRnc0pIeSnh9LUjj+PYQrJYBURvDt7twGl2PKA7nSN0kz1Zw5bnQ==",
109-
"dependencies": {
110-
"Microsoft.Build.Tasks.Git": "8.0.0",
111-
"Microsoft.SourceLink.Common": "8.0.0"
112-
}
113-
},
11490
"Microsoft.TestPlatform.ObjectModel": {
11591
"type": "Transitive",
11692
"resolved": "17.8.0",
@@ -1216,9 +1192,7 @@
12161192
"hangfire.inmemory": {
12171193
"type": "Project",
12181194
"dependencies": {
1219-
"Hangfire.Core": "[1.8.0, )",
1220-
"Microsoft.CodeAnalysis.NetAnalyzers": "[9.0.0, )",
1221-
"Microsoft.SourceLink.GitHub": "[8.0.0, )"
1195+
"Hangfire.Core": "[1.8.0, )"
12221196
}
12231197
}
12241198
},
@@ -1280,35 +1254,11 @@
12801254
"Owin": "1.0.0"
12811255
}
12821256
},
1283-
"Microsoft.Build.Tasks.Git": {
1284-
"type": "Transitive",
1285-
"resolved": "8.0.0",
1286-
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
1287-
},
1288-
"Microsoft.CodeAnalysis.NetAnalyzers": {
1289-
"type": "Transitive",
1290-
"resolved": "9.0.0",
1291-
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
1292-
},
12931257
"Microsoft.NETFramework.ReferenceAssemblies.net452": {
12941258
"type": "Transitive",
12951259
"resolved": "1.0.3",
12961260
"contentHash": "kuFOgilYbs29xENHlqQ6aJYa+t56u+OqHx85P7GYLVlo7HL3nsug9IQY2DoPgkOpZ2xb9btYV2EFK7Enll8S3A=="
12971261
},
1298-
"Microsoft.SourceLink.Common": {
1299-
"type": "Transitive",
1300-
"resolved": "8.0.0",
1301-
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
1302-
},
1303-
"Microsoft.SourceLink.GitHub": {
1304-
"type": "Transitive",
1305-
"resolved": "8.0.0",
1306-
"contentHash": "G5q7OqtwIyGTkeIOAc3u2ZuV/kicQaec5EaRnc0pIeSnh9LUjj+PYQrJYBURvDt7twGl2PKA7nSN0kz1Zw5bnQ==",
1307-
"dependencies": {
1308-
"Microsoft.Build.Tasks.Git": "8.0.0",
1309-
"Microsoft.SourceLink.Common": "8.0.0"
1310-
}
1311-
},
13121262
"Newtonsoft.Json": {
13131263
"type": "Transitive",
13141264
"resolved": "5.0.1",
@@ -1373,9 +1323,7 @@
13731323
"type": "Project",
13741324
"dependencies": {
13751325
"Hangfire.Core": "[1.8.0, )",
1376-
"Microsoft.CodeAnalysis.NetAnalyzers": "[9.0.0, )",
1377-
"Microsoft.NETFramework.ReferenceAssemblies": "[1.0.3, )",
1378-
"Microsoft.SourceLink.GitHub": "[8.0.0, )"
1326+
"Microsoft.NETFramework.ReferenceAssemblies": "[1.0.3, )"
13791327
}
13801328
}
13811329
},
@@ -1450,16 +1398,6 @@
14501398
"Newtonsoft.Json": "11.0.1"
14511399
}
14521400
},
1453-
"Microsoft.Build.Tasks.Git": {
1454-
"type": "Transitive",
1455-
"resolved": "8.0.0",
1456-
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
1457-
},
1458-
"Microsoft.CodeAnalysis.NetAnalyzers": {
1459-
"type": "Transitive",
1460-
"resolved": "9.0.0",
1461-
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
1462-
},
14631401
"Microsoft.CodeCoverage": {
14641402
"type": "Transitive",
14651403
"resolved": "17.8.0",
@@ -1475,20 +1413,6 @@
14751413
"resolved": "1.1.0",
14761414
"contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg=="
14771415
},
1478-
"Microsoft.SourceLink.Common": {
1479-
"type": "Transitive",
1480-
"resolved": "8.0.0",
1481-
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
1482-
},
1483-
"Microsoft.SourceLink.GitHub": {
1484-
"type": "Transitive",
1485-
"resolved": "8.0.0",
1486-
"contentHash": "G5q7OqtwIyGTkeIOAc3u2ZuV/kicQaec5EaRnc0pIeSnh9LUjj+PYQrJYBURvDt7twGl2PKA7nSN0kz1Zw5bnQ==",
1487-
"dependencies": {
1488-
"Microsoft.Build.Tasks.Git": "8.0.0",
1489-
"Microsoft.SourceLink.Common": "8.0.0"
1490-
}
1491-
},
14921416
"Microsoft.TestPlatform.ObjectModel": {
14931417
"type": "Transitive",
14941418
"resolved": "17.8.0",
@@ -2594,9 +2518,7 @@
25942518
"hangfire.inmemory": {
25952519
"type": "Project",
25962520
"dependencies": {
2597-
"Hangfire.Core": "[1.8.0, )",
2598-
"Microsoft.CodeAnalysis.NetAnalyzers": "[9.0.0, )",
2599-
"Microsoft.SourceLink.GitHub": "[8.0.0, )"
2521+
"Hangfire.Core": "[1.8.0, )"
26002522
}
26012523
}
26022524
}

0 commit comments

Comments
 (0)