0

Giving a simple SLN that contains the following project:

├───libs
│   ├───libA
│   │       Class1.cs
│   │       libA.csproj
│   ├───libB
│   │       Class1.cs
│   │       libB.csproj
│   └───libC
│           Class1.cs
│           libC.csproj
└───tools
    ├───toolA
    │       Program.cs
    │       toolA.csproj
    └───toolB
            Program.cs
            toolB.csproj

I would like to have an filtered SLN that only loads the projects under libs folder without having to list all the projects one by one.

I tried to create an .slnf with the following content:

{
  "solution": {
    "path": "Solution.sln",
    "projects": [
      "libs\\**\\*.csproj",
    ]
  }
}

When loading the slnf in Visual Studio 2019, none of the project are loaded when I was expecting to have see the projects under the libs folder.

I also tried a couple of other formats such as libs\\.*\\.*.csproj, but none of them seems to work.

Does filtered SLN supports regexes in the list of projects? If yes, how to use it?

4
  • libs and tools folders are located directly inside folder where .sln file is located? Did this work with specific paths instead of regex? Commented Apr 14, 2021 at 1:38
  • 2
    There's an open request to add this, so I assume it doesn't currently exist: developercommunity.visualstudio.com/t/… Commented Apr 14, 2021 at 1:55
  • @ChetanRanpariya, when I list the projects one by one, yes it works. Commented Apr 15, 2021 at 17:03
  • @devNull, you must be right, the feature does not exist yet. Upvoting it! Commented Apr 15, 2021 at 17:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.