I have: .NET Core App, modified for VS 2017 and using the TFS channel. When it was in VS 2015 , NuGet restore worked fine. Now, using VS 2017 , NuGet restore does not work, returning Failed to load msbuild Toolset ... Could not load file or assembly 'Microsoft.Build, Version=14.0.0.0
I am also trying to use dotnet restore and I got a 401 (Unauthorized) response.
NuGet restore seems to be the preferred way to do this, as it automatically authenticates for us to use the TFS tape, but doesn't seem to recognize VS 2017.
Update 03.20.2017
Sorry for the confusion, I forgot to mention that the problem is using CI / CD Visual Studio Team Services / Build. It works fine on my PC because I had NuGet 4 (it comes with VS 2017) ... but on the Internet, NuGet versions are available (with access to a private tape): 3.3 and 3.5
Update 03.25.2017
After I added Nuget 4.0 to the assembly, as @ Cece-MSFT suggested, I still get an error message, but without much detail. see screenshot: 
source share