C#C
C#4y ago
cumslvt13

dotnet publish solution excluding projects with tests

Is it possible to publish solution and exclude projects with tests?

I have the following project structure and docker image doesn't actually need those *.Tests projects to be published:

└───src
    ├───DemoApp.Publisher
    ├───DemoApp.Publisher.Tests
    ├───DemoApp.Shared
    ├───DemoApp.Worker
    └───DemoApp.Worker.Tests


Also, is it a good idea to build single docker image instead of two separate ones? DemoApp.Publisher and DemoApp.Worker are meant to be standalone apps.
Was this page helpful?