title: Build errors of missing packages in Visual Studio Online (2015 version)
body: <p>I'm getting the following message when I trigger a build on check-in to Visual Studio Online. Locally it compiles and deploys just fine.</p>
  
  <blockquote>
    <p>packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.CSharp.Core.targets (67, 5)</p>
  </blockquote>
  
  <p>To be more precise, this is the problem being described.</p>
  
  <blockquote>
    <p>The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded from the assembly C:\a\1\s\packages\Microsoft.Net.Compilers.1.0.0\build..\tools\Microsoft.Build.Tasks.CodeAnalysis.dll. Could not load file or assembly 'file:///C:\a\1\s\packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.Build.Tasks.CodeAnalysis.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the  declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.</p>
  </blockquote>
  
  <p>So, evidently, I have some locally placed files making the compilation work <strong>on site</strong> (i.e. my machine) but those aren't deployed using check-in. I haven't put in any DLLs or such manually into my project. Everything that's there is either source code based or obtained with the package manager.</p>
  
  <p>That poses the following issues.</p>
  
  <ol>
  <li>I don't know which exact files those are (error message in Visual Studio Online doesn't disclose that information and I can't reproduce it locally).</li>
  <li>I'm not sure how to forcingly push all the relevant files to the repository for the building agent to fetch (according ot my experience, it's done automagically).</li>
  </ol>
  
  <p>The settings in the build step are as follows.</p>
  
  <ul>
  <li><strong>Solution:</strong> **\*.sln</li>
  <li><strong>MsBuild Arguments:</strong> /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\"</li>
  <li><strong>Platform:</strong> </li>
  <li><strong>Configuration:</strong> </li>
  <li><strong>Clean:</strong> off</li>
  <li><strong>Restore NuGet Packages:</strong> checked</li>
  <li><strong>Visual Studio Version:</strong> Visual Studio 2015</li>
  <li><strong>MsBuild Architecture:</strong> MSBuild x86</li>
  <li><strong>Record Project Details:</strong> checked</li>
  </ul>