从哪里引用缺少的程序集(System.Net.Http.Formatting)?
" 类型'System.Net.Http.Formatting.MediaTypeFormatter'是在未引用的程序集中定义的.您必须添加对程序集'System.Net.Http.Formatting,Version = 4.0.0.0,Culture = neutral, PublicKeyToken = 31bf3856ad364e35' "
参考:https://qa.1r1g.com/sf/ask/1352569501/
- 方法1
Install-Package System.Net.Http.Formatting -Version 4.0.20710
- 方法2
Install-Package Microsoft.AspNet.WebApi.Client -Version 4.0.20710