question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an option to search for projects in subdirectories as well

See original GitHub issue

It 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jeffklcommented, Jan 21, 2023

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.

0reactions
michael-hawkercommented, Jan 17, 2023

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found