System.Net.Http: missing from namespace? (using .net 4.5)

后端 未结 16 2329
我寻月下人不归
我寻月下人不归 2020-11-27 17:57

TL; DR: I\'m new to this language and have no idea what I\'m doing

here is my class so far:

using System;
using System.Collections.Generic;
using Sys         


        
16条回答
  •  旧时难觅i
    2020-11-27 18:15

    I had this issue after upgrading to .NET Framework 4.7.2. I found out that Nuget package for System.Net.Http is no longer recommended. Here are workarounds:

    • Single-name references are removed by the SDK
    • Nuget package for System.Net.Http on .NET Framework 4.7.2 and newer versions

提交回复
热议问题