Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.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.

like image 215
BaltoStar Avatar asked Sep 26 '19 23:09

BaltoStar


1 Answers

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

like image 152
Konard Avatar answered Sep 21 '22 02:09

Konard