I have a multi-project .NET solution that I'm trying to set-up with TeamCity (TC) for CI and Octopus Deploy (OD) for CD.

I originally set-up TC to pull the latest from SVC, build the solution and deploy it as a .zip on the Dev server, but I've been having issues trying to deploy the solution to IIS with OP. I was informed that I should instead have TC take the solution and create multiple packages from it for OP to pick-up. I currently don't know how to do this.

I have the following build steps:

[![Current build steps set in TC](https://i.stack.imgur.com/Ja3sQ.png)](https://i.stack.imgur.com/Ja3sQ.png)

And I have this in my General Settings Publish Artifact settings:

[![General Settings Publish Artifact settings](https://i.stack.imgur.com/NUdwy.png)](https://i.stack.imgur.com/NUdwy.png)

Visual Studio solution set-up (Blue shows the projects that make up the entire application we want to deploy. Green boxed will be the separate packages, BLL, Services and Repository because of project dependency get rolled up into the API project.):

[![Solution loaded in Visual Studio](https://i.stack.imgur.com/glWJv.png)](https://i.stack.imgur.com/glWJv.png)

I have manually deployed the solution in IIS, below is how it needs to deploy in IIS:

[![Manually deployed IIS setup](https://i.stack.imgur.com/wWkV8.png)](https://i.stack.imgur.com/wWkV8.png)

The root site is a .NET project using MVC that communicates, hubs is a Signal-R project and API has the repository project and services project under it. So essentially The root website is a client, it communicates can only see API and hubs and any communication to the repository project would go through the API project first, it's supposed to be using a service-orientated architecture.

The goal is that TC should spit out 3 packages, one for the root website, one for the Signal-R project and one for the API which holds several projects but all projects are entirely in a single solution and this isn't something that I can get around for the time being. Once TC can do that I will need to set-up OD to deploy each of those packages to their required locations (which should hopefully be pretty simple).

Any information/assistance with this is greatly appreciated as I do not have a Dev-Ops background and this is the first time I've had to set-up this kind of a project with TeamCity.

Kind regards.