title: TFS Build with dotnet restore and 4.5 Project
body: <p>I have a .Net CORE (Framework) Project that I want to build and deploy using TFS. I do a Nuget Restore Task first on the solution and than run MSBuild Solution with the following argument</p>
  
  <blockquote>
    <p>/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\" (Visual Studio Version 2015)</p>
  </blockquote>
  
  <p>I get the <strong>Please run "dotnet restore" to generate a new lock file.</strong> message but I cannot run that because there is a library that is referenced that is 4.5 and the dotnet cli errors on that project. Is there a workaround for this? </p>