In DevOps you can create a dotnet build
task where "Path to project(s)" can be set to **/*.csproj
to build all the projects.
This works just fine, but it (obviously) also builds my *.Test.csproj
projects.
I found some posts mentioning exclude patterns, so I tried doing the same as in those posts and tried the following combinations:
**/*.csproj;-**/*.Test.csproj
**/*.csproj;!**/*.Test.csproj
**/*.csproj;-:**/*.Test.csproj
**/*.csproj;!:**/*.Test.csproj
For all attempts I get the following error in the DevOps log:
Project file(s) matching the specified pattern were not found.
So, how can I create a dotnet build
task to build all my projects except the *.Test.csproj
projects?