I have a .net core 2.0 console app. I'm trying to read files from TFS using the following:
How to get a file from TFS directly into memory (i.e., don't want to read from file system into memory)?
I head over to nuget and install Microsoft.TeamFoundationServer.ExtendedClient
and run into this:
Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
Even after suppressing the warning, I still get the error and can't reference the library. How can I get this reference resolving?
Very easy to repro:
- New .net core 2.0 console app
- Copy the method from the above question
- Try to install the nuget package
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…