title: Build one web project from a Solution with multiple web projects in Visual Studio Online Build Definition
body: <p>I'm facing a problem where I need to build only one web project from a solution with two web projects in Visual Studio Online.</p>
  <ul>
  <li>I have not found how to build only one project using a &quot;Visual Studio Build&quot; step.</li>
  </ul>
  <p>It would be great if exist such a way to do this with &quot;Visual Studio Build&quot; step.</p>
  <ul>
  <li>I also tried to use an &quot;MSBuild&quot; step. Unfortunately I got a problem when restoring the packages with Nuget. I got the error: ##[error]No file format header found, ##[error]Unexpected exit code 1 returned from tool NuGet.exe. Right after run: <strong>Nuget.exe restore Myproj.csproj</strong>.</li>
  </ul>
  <p>Summarizing:</p>
  <p>How can I build only one web project from a solution with multiple web projects in visual studio online build definition?</p>
  <h2>Update</h2>
  <p>Here is an image of the error when I'm building. Also i'm getting this using &quot;Visual Studio Build&quot; step or &quot;MSBuild&quot; step.</p>
  <p><a href="https://i.stack.imgur.com/NLMMn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NLMMn.png" alt="enter image description here" /></a></p>
  <h2>Also</h2>
  <p>I found a comment from chrisrpatterson in a VSO issue:
  <a href="https://github.com/Microsoft/vso-agent-tasks/issues/571" rel="nofollow noreferrer">https://github.com/Microsoft/vso-agent-tasks/issues/571</a></p>
  <p>Which he says: <em>You can't run nuget restore against anything other than an SLN file. You should uncheck restore nuget packages on that vsbuild task.</em></p>
  <p>But I need the packages, and I don't want to push my packages folder into my repo.</p>
  <p>So, how can I restore the packages and run only one web project from my solution in &quot;Visual Studio Build&quot; step?</p>