You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
<FilePath="test\**\*.cs" />
This would help dynamically include files without needing to list each one individually, streamlining file management.
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.
<SolutionSdk="...">
<!-- Includes every csproj, directory props, targets by default -->
<ProjectRemove="Project.csproj"/>
<FolderPath="Solution Items"> <!-- Could be implicit as well? Why would you not want to include this? --><!-- Includes all files in the root -->
<FilePath="*.*" />
</Folder>
</Solution>
Right now there must be an additional definition per each directory.
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.
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 theMicrosoft.Build.Globbing
package. This would make managing large solutions simpler, especially when adding multiple files.For example:
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.
The text was updated successfully, but these errors were encountered: