Commit fba448b
* refactor: Use XML parsing instead of string parsing for project dependencies
Replace fragile string parsing with proper XML parsing using XDocument
to extract ProjectReference elements from .csproj files.
Benefits:
- More robust and reliable parsing
- Handles all formatting variations correctly
- Platform-independent path handling with Path.GetFileName
- Follows the same pattern used elsewhere in the codebase
Fixes #1645
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: Dispose FileStream properly and use OfType<string>
- Fix resource leak by wrapping FileStream in await using statement
- Use .OfType<string>() instead of .Where(v => v != null) for better
null handling and type safety
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: Use ProjectRootElement instead of XDocument for consistency
Replace XDocument-based XML parsing with ProjectRootElement from
Microsoft.Build.Construction, matching the existing pattern used in
GenerateReadMeModule.cs. This provides a more idiomatic approach for
parsing MSBuild project files.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d6158a3 commit fba448b
1 file changed
Lines changed: 10 additions & 9 deletions
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 21 | + | |
26 | 22 | | |
27 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
28 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments