Add an option to search for projects in subdirectories as well
See original GitHub issueIt would be great if we could leverage slngen to keep our solution files up-to-date dotnet/runtime in which we have the following project hierarchy:
- System.Runtime.Serialization.Formatters
- ref
System.Runtime.Serialization.Formatters.csproj
- src
System.Runtime.Serialization.Formatters.csproj
- tests
System.Runtime.Serialization.Formatters.Tests.csproj
By default slngen only searches for project files in the current directory if one isn’t specified. Can we change this so that it searches for project files in subdirectories as well either by default or under a switch?
Note that we would probably need multiple entry points here as we don’t have a clear dependency chain yet between ref, src and test projects.
cc @jeffkl
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:12 (5 by maintainers)
Top Results From Across the Web
How to add just some subdirectories of a project ...
Hi there, I wanted to know if someone was aware about a way to add a directory to a project WITHOUT all of...
Read more >Searching a specific project sub-directory with projectile
How can I run projectile search (e.g. C-c p s r for using ripgrep) and limit results to a specific sub-directory in that...
Read more >Sources from subdirectories in Makefile
but I'm looking for a way to avoid specifying subdir manually, that is, make wildcard look into subdirectories, or generating a list of ......
Read more >Project build options / Search directories
Hi! Is there any way to make Compiler / "Search directories" go into subdirectories? If the sources are structured in subfolders, there may...
Read more >Load project list from directory #43
Import projects: Scan for .vscode subfolders, inside a folder and automatically add it as new projects; Auto-detect projects: Automatically ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Recent versions of SlnGen support this by specifying a globbing pattern like
**\*.csproj
. You can also exclude globs with:slngen **\*.csproj --exclude:"**\*Test.csproj
For more advanced scenarios like mapping globs to solution folders, let’s open a new issue to track that.
Globbing (
**\*.csproj
) seems to work well here, though there’s no option to configure the structure of solution itself. It just uses the folder structure if you use the existing--folder true --collapsedfolders true
settings.