Commit 76f05ec
committed
fix: remove unused Microsoft.CodeAnalysis dependencies (#157)
The library emits code via System.Reflection.Emit, not Roslyn, but a
global Microsoft.CodeAnalysis.CSharp.Scripting PackageReference in
Directory.Build.props pulled Microsoft.CodeAnalysis.CSharp (~6.6MB) and
Microsoft.CodeAnalysis.Common into every project, leaking them into
consumers' published output.
No CodeAnalysis/Roslyn API is used anywhere in the codebase, so remove
the references outright rather than masking them with PrivateAssets:
- Directory.Build.props: drop global CSharp.Scripting reference
- Hyperbee.Expressions: drop CodeAnalysis.Common / CodeAnalysis.CSharp
- Hyperbee.Expressions.Lab: drop CodeAnalysis.* plus other unused refs
(Hyperbee.Collections, Extensions.Configuration[.Binder])
- Directory.Packages.props: drop orphaned CodeAnalysis version entries
Verified: full solution builds (net8/9/10, 0 warnings), all tests pass,
and the packed nuspec no longer declares any CodeAnalysis dependency.1 parent 07bfc76 commit 76f05ec
4 files changed
Lines changed: 0 additions & 12 deletions
File tree
- src
- Hyperbee.Expressions.Lab
- Hyperbee.Expressions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 39 | | |
45 | 40 | | |
46 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
0 commit comments