title: Cake build - NugetRestore with PackageReferences
body: <p>I have a Visual Studio 2017 solution which contains .NET Standard, .NET Core, and .NET Framework projects. My .NET Framework 4.6.2 project is using PackageReferences in the .csproj file - instead of a packages.config.</p>
  
  <p>This seems to be the new way of specifying NuGet packages and will allow future migration to .NET Standard 2.0 (I hope).
  <a href="https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files</a></p>
  
  <p>csproj:</p>
  
  <pre><code>&lt;ItemGroup&gt;
      &lt;PackageReference Include="LanguageExt.Core"&gt;
          &lt;Version&gt;2.1.1&lt;/Version&gt;
      &lt;/PackageReference&gt;
      &lt;PackageReference Include="Microsoft.SqlServer.Dac"&gt;
            &lt;Version&gt;1.0.3&lt;/Version&gt;
  </code></pre>
  
  <p>VS displays cool icons:</p>
  
  <p><a href="https://i.stack.imgur.com/Qic3R.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qic3R.jpg" alt="project references"></a></p>
  
  <p>Anyway, the solution compiles fine under Visual Studio but fails with build errors when compiling via cake.</p>
  
  <pre><code>Databases\DatabaseInstaller.cs(5,27): error CS0234: The type or namespace name 'Dac' does not exist in the namespace 'Microsoft.SqlServer' (are you missing an assembly reference?) [C:\code\Core.AcceptanceTesting\Core.AcceptanceTesting.csproj]
  </code></pre>
  
  <p>Are these newer "PackageReferences" supported by cake build?</p>
  
  <p>Here's a segment from my cake script:</p>
  
  <pre><code>// NuGet restore packages for .NET Framework projects (and .NET Core projects)
  Task("NuGet-Restore")
      .IsDependentOn("Clean")
      .Does(() =&gt;
      {
          NuGetRestore(solutionFile);
      });
  
  // NuGet restore packages for .NET Core projects only
  Task("DotNetCoreRestore")
      .IsDependentOn("NuGet-Restore")
      .Does(() =&gt;
      {
          var settings = new DotNetCoreRestoreSettings
          {
              ArgumentCustomization = args =&gt; args.Append("/p:Version=" + versionPrefix + "-" + versionSuffix)
          };
          DotNetCoreRestore(settings);
      });
  
  // Build our solution
   Task("Build")
      .IsDependentOn("DotNetCoreRestore")
      .Does(() =&gt;
      {
          DotNetCoreBuild(
              solutionFile,
              new DotNetCoreBuildSettings()
              {
                  ArgumentCustomization = args =&gt; args.Append("/p:Version=" + versionPrefix + "-" + versionSuffix),
                  Configuration = configuration
              });
      });
  </code></pre>