title: Mixed targets in VSTS build
body: <p>We have an <code>aspnet-core</code> application which consists of several <code>.net standard</code> libraries, two <code>aspnet-core mvc</code> applications and, exceptionally, a <code>.net framework</code> console application.</p>
  
  <p>These all build successfully, both in solution in Visual Studio, and also individually using <code>msbuild</code>/<code>dotnet build</code> commands.</p>
  
  <p>We are now trying to implement continuous integration/build with VSTS.</p>
  
  <p>We have found that the <code>aspnet-core</code> web applications build successfully, but the <code>.net framework</code> console application fails with multiple error messages like the following:</p>
  
  <pre><code>2017-12-24T07:20:26.4090447Z C:\Program 
  Files\dotnet\sdk\2.0.3\Microsoft.Common.CurrentVersion.targets(1988,5): 
  warning MSB3245: Could not resolve this reference. Could not locate the 
  assembly "Xxx.Core, Version=1.1.0.0, Culture=neutral, 
  processorArchitecture=MSIL". Check to make sure the assembly exists on disk. 
  If this reference is required by your code, you may get compilation errors. 
  [d:\a\1\s\WinApps\ListBuilder\ListBuilder.csproj]
  </code></pre>
  
  <pre><code>C:\Program Files\dotnet\sdk\2.0.3\Microsoft.Common.CurrentVersion.targets(1988,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.EntityFrameworkCore, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\1\s\WinApps\TelemListBuilder\TelemListBuilder.csproj]
  </code></pre>
  
  <p>The console application follows the same folder structure as the web applications but seems unable to find any of the referenced packages.</p>
  
  <p>Our Agent queue is <code>Hosted VS2017</code>.</p>
  
  <p>We have two VSTS tasks: <code>Restore</code> and <code>Build</code> from the <code>asp.net core</code> build template.</p>
  
  <p>If necessary we would be happy if we could exclude the console app from the build.</p>