https://github.com/mathiasfk/dotnet-recursive-references
Recursively finds all project dependencies in a dotnet solution.
https://github.com/mathiasfk/dotnet-recursive-references
dependencies dependency-analysis dotnet recursive reference references
Last synced: 5 months ago
JSON representation
Recursively finds all project dependencies in a dotnet solution.
- Host: GitHub
- URL: https://github.com/mathiasfk/dotnet-recursive-references
- Owner: mathiasfk
- License: mit
- Created: 2025-03-01T12:50:05.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-08T20:07:17.000Z (10 months ago)
- Last Synced: 2025-03-08T21:30:21.789Z (10 months ago)
- Topics: dependencies, dependency-analysis, dotnet, recursive, reference, references
- Language: PowerShell
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# .NET Recursive References
Recursively finds all project dependencies in a solution. It runs `dotnet list reference` for each project listed as dependency of the project(s) passed as initial entrypoint(s).
In order to run this script you may need to bypass the default system policy to trust it:
```ps1
Set-ExecutionPolicy Bypass -Scope Process
```
Usage:
```ps1
.\Get-RecursiveReferences.ps1 [-ProjectDirs ] [-h] [-Silent]
```
Parameters:
```
-ProjectDirs Specify the project directories to start the search.
-ProjectDir Alias for -ProjectDirs.
-Silent Dot not print the visited directories.
-h Display this help message.
-help Alias for -h.
```
## Examples:
```ps1
.\Get-RecursiveReferences.ps1 -ProjectDir "C:\path\solution\src\Solution.Api\"
```
To execute for multiple projects, use a comma after each project:
```ps1
.\Get-RecursiveReferences.ps1 -ProjectDirs "C:\path\solution\src\Solution.Api\", "C:\path\solution\src\Solution.Infrastructure\"
```
You can also break the command into multiple lines:
```ps1
.\Get-RecursiveReferences.ps1 -ProjectDirs `
"C:\path\solution\src\Solution.Api\", `
"C:\path\solution\src\Solution.Infrastructure\"
```