title: TeamCity publish using Visual Studio 2015
body: <p>I've read many articles on publishing from TeamCity using various versions of Visual Studio.  I'm currently using v.9.1.7 of TeamCity and Visual Studio 2015.</p>
  
  <p>I have my 3 build steps on check-in:</p>
  
  <ul>
  <li>Clean &amp; Rebuild</li>
  <li>Unit Test</li>
  <li>Publish</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/FWIJE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FWIJE.png" alt="Build Steps"></a></p>
  
  <p>When I check in my files I get a Tests Passed success message:</p>
  
  <p><a href="https://i.stack.imgur.com/31pme.png" rel="noreferrer"><img src="https://i.stack.imgur.com/31pme.png" alt="Tests Passed"></a></p>
  
  <p>I can tell from here something isn't right as I'm expecting it to say something about publishing.  When I look at the Build Log I see the following:</p>
  
  <blockquote>
    <p><strong>[12:48:22][API\API.sln] Publish [12:48:22][Publish] MSBuild [12:48:22][MSBuild] API\API\API.csproj: Build target: Publish
    [12:48:22][API\API\API.csproj] _DeploymentUnpublishable</strong></p>
  </blockquote>
  
  <p>My Publish Build Step is setup this way:</p>
  
  <p><a href="https://i.stack.imgur.com/bBOhi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bBOhi.png" alt="Publish Build Step"></a></p>
  
  <p>In my API project in Visual Studio I can publish to the correct location on the network.  Here is my publish profile:</p>
  
  <p><a href="https://i.stack.imgur.com/CoYsI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CoYsI.png" alt="Visual Studio Publish Profile"></a></p>
  
  <p>I'm not sure what I'm missing.  I'm expecting the Publishing build step to work like when I click the Build->Publish menu item in Visual Studio.</p>
  
  <p>I'm guessing that I'm missing something or misunderstanding what the publishing build step is supposed to do. </p>
  
  <p>Any help is appreciated.  </p>