I have .sln file which contains some projects in different folders, initially in root folder I have src and Tests folders and sln file. The structure is depicted on image below:
When I run dotnet build it builds all the projects. Another way is to pass <PROJECT | SOLUTION> file in order to build something more specific. I need to build only specific project according to the wildcard or exclude some projects from build.
When I try to pass **/src/*.csproj or !Tests/** it does not filter projects but gives the error from MSBuild:
Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: **/src/*.csproj
Is there a way to build projects according to the wildcard pattern?
