'.NET CLI (dotnet) Build : exclude project from solution

TeamCity .NET CLI (dotnet) Build

Building a Visual Studio Solution ( .sln ) with multiple Projects ( .csproj ).

Is it possible to exclude a certain project from the build ?

This is a project no other projects depend on.



Solution 1:[1]

You need dotnet sln command. But according to the documentation of TeamCity it does not support it yet.

But you can try to use a Projects option with a wildcard:

!**/ProjectToExclude.csproj

Or may be you should use Docker Wrapper

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1