Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add Globbing Pattern Support for Files in .slnx #61

Open
kasperk81 opened this issue Oct 10, 2024 · 2 comments
Open

Feature Request: Add Globbing Pattern Support for Files in .slnx #61

kasperk81 opened this issue Oct 10, 2024 · 2 comments

Comments

@kasperk81
Copy link

Feature Request: Add Globbing Pattern Support for Files in .slnx

I'd like to suggest adding support for globbing patterns in .slnx files, similar to how it's done in .csproj using the Microsoft.Build.Globbing package. This would make managing large solutions simpler, especially when adding multiple files.

For example:

<File Path="test\**\*.cs" />

This would help dynamically include files without needing to list each one individually, streamlining file management.

For more context, please refer to the Microsoft documentation on file globbing.

@alrz
Copy link

alrz commented Oct 20, 2024

Following sdk-style project format I think this should be the default for csproj files because the solution structure is usually in sync with file system, including any subfolders.

<Solution Sdk="...">
  <!-- Includes every csproj, directory props, targets by default -->
  <Project Remove="Project.csproj"/>
  <Folder Path="Solution Items"> <!-- Could be implicit as well? Why would you not want to include this? -->
     <!-- Includes all files in the root -->
     <File Path="*.*" /> 
  </Folder>
</Solution>

Right now there must be an additional definition per each directory.

@jnm2
Copy link

jnm2 commented Oct 21, 2024

This would solve a longstanding pain point. Most times when I add a new file to a solution folder, I have to create it separately and then add as an existing file as a separate step. It's very manual and it's easy to forget to keep it in sync. It would be incredibly nice if the solution folder would dynamically update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants