Tags: Inedo/pgutil
Tags
Fix cross-platform path resolution in NuGetDependencyScanner (#26) * Fix cross-platform path resolution Use Path.GetFullPath() to normalize project paths when combining solution root with relative project paths. This resolves issues where solution files created on Windows contain Windows-style path separators that cause path resolution failures when pgutil is executed on macOS/Linux systems. The change ensures proper path normalization across all platforms by leveraging .NET's built-in path handling instead of relying on FileSystem.Combine alone. * Fix cross-platform path separator normalization in solution scanning Normalize path separators in project paths before combining with solution root to ensure correct path resolution across platforms. Solution files may contain Windows-style backslashes or Unix-style forward slashes depending on where they were created, but the project.assets.json lookup requires platform-consistent paths. The fix explicitly converts both separator types to the platform's native separator before path combination. Without this normalization, path lookups in the assets dictionary fail, causing dependency detection to miss packages entirely. Changes: - Normalize both '\' and '/' to Path.DirectorySeparatorChar before combining paths - Ensures bidirectional compatibility: Windows paths on Unix and vice versa --------- Co-authored-by: Hennadii Krol <[email protected]>
- Added GetScaPermissionsAsync - Added PUrl class with parser
PreviousNext