title: How to publish additional files using msbuild file and TeamCity?
body: <p>I'm using a msbuild file, TeamCity and Web Deploy to deploy my siteand everything works just fine, for the files included in the Visual Studio csproj file. In addition to these files I want to publish a couple of more files such as license files etc depending on environment.</p>
  
  <p>This is my build file DeployToTest.proj:</p>
  
  <pre><code>&lt;Project DefaultTargets="Deploy" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"&gt;
  &lt;ItemGroup&gt;
  &lt;LicenseSourceFiles Include="License.config"/&gt;
  &lt;RobotSourceFile Include="robots.txt" /&gt;
  &lt;/ItemGroup&gt;
  
  &lt;Target Name="Build"&gt;
  &lt;Message Text="Starting build" /&gt;
  &lt;MSBuild Projects="..\..\WebApp.sln" Properties="Configuration=Test" ContinueOnError="false" /&gt;
  &lt;Message Text="##teamcity[buildNumber '$(FullVersion)']"/&gt;
  &lt;Message Text="Build successful" /&gt;
  &lt;/Target&gt;
  
  &lt;Target Name="Deploy" DependsOnTargets="Build"&gt;
  &lt;Copy SourceFiles="@(LicenseSourceFiles)" DestinationFolder="..\..\wwroot"&gt;&lt;/Copy&gt;
  &lt;Copy SourceFiles="@(RobotSourceFile)" DestinationFolder="..\..\wwwroot"&gt;&lt;/Copy&gt;
  
  &lt;Message Text="Started deploying to test" /&gt;
  &lt;Exec Command="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe ..\..\wwwroot\WebApp.csproj /property:Configuration=Test /t:MsDeployPublish /p:MsDeployServiceUrl=99.99.99.99;DeployIisAppPath=MySite;username=user;password=pass;allowuntrustedcertificate=true" /&gt;
  &lt;Message Text="Finished deploying to test" /&gt;
  &lt;/Target&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>As you can see I tried to copy the license.config and robots.txt without any luck. </p>
  
  <p>This .proj file is selected as the 'Build file path' in TeamCity.</p>
  
  <p>Any suggestions on how I can accomplish this?</p>