C# MissingMethodException PostAsJsonAsync异常

C# MissingMethodException PostAsJsonAsync异常,c#,.net,vsix,C#,.net,Vsix,我在VS 2015 professional中的一个系统中安装了我的vsix项目,在执行过程中,我使用了PostAsJsonAsync()的方法,得到了以下异常 错误: System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1<System.Net.Http.HttpResponseMessage> System.Net.Http.HttpClientExtensions.PostA

我在VS 2015 professional中的一个系统中安装了我的vsix项目,在执行过程中,我使用了
PostAsJsonAsync()
的方法,得到了以下异常

错误:

System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1<System.Net.Http.HttpResponseMessage> System.Net.Http.HttpClientExtensions.PostAsJsonAsync(System.Net.Http.HttpClient, System.String, !!0)'.       
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) 
System.MissingMethodException:找不到方法:“System.Threading.Tasks.Task`1 System.Net.Http.HttpClientExtensions.PostAsJsonAsync(System.Net.Http.HttpClient,System.String,!!0)”。
在System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine&stateMachine)中
我在vsix项目中有
System.Net.Http
System.Net.Http.Formatting
System.Net.Http.Formatting.Extension-nuget-pkg
)dll。 我只是在VS 2015中得到了这个例外,而不是在VS 2017中

当我在系统的VS 2013中安装vsix时,我不会遇到这个异常。
我遗漏了什么吗?

所有VS版本都在同一台机器上?没有。只有VS 2015安装在我遇到此异常的机器上。在我的机器里,我有VS 2015和2017,我也面临着同样的问题,对此有什么解决方案吗?