System.Threading.Tasks.Extensions需要NET 4.5.2 Web API项目上的.NET Framework版本4.6 [英] System.Threading.Tasks.Extensions requires .NET Framework version 4.6 on NET 4.5.2 Web API projects

查看:620
本文介绍了System.Threading.Tasks.Extensions需要NET 4.5.2 Web API项目上的.NET Framework版本4.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有一个必须在.NET Framework 4.5.2版上运行的Web API.

I have a Web API that must run on .NET Framework version 4.5.2.

在解决方案上安装nuget软件包System.Threading.Tasks.Extensions时,该软件包引入了.NET Framework 4.6版的运行时依赖项

When I install the nuget package System.Threading.Tasks.Extensions on the solution, the package introduces the runtime dependency of .NET Framework version 4.6

请注意,在测试控制台应用程序上,结果与预期的一样.您安装了System.Threading.Tasks.Extensions,然后可以在.NET 4.5.2上运行该应用程序

As a side note, on a test console application the result is as expected. You install System.Threading.Tasks.Extensions and you can run the application on .NET 4.5.2

推荐答案

JesúsCorrius,

Hi Jesús Corrius,

感谢您在MSDN论坛中发帖.

Thank you for posting in MSDN forum.

我尝试按照以下步骤进行复制,其结果与您的相同:

I try the following steps to reproduce it, the same result as yours:

1.创建一个针对.Net Framework 4.5.2的Web API项目.

1. Create a Web API project which targets on the .Net Framework 4.5.2 .

2.从Nuget软件包管理器中安装  System.Threading.Tasks.Extensions.

2. Install the  System.Threading.Tasks.Extensions from Nuget package manager.

3.尽管它显示了该平台在v4.6.1上可用,但也可以在.Net Framework 4.5.2上顺利运行,而没有任何错误信息.

3. Although it shows the Platform which is available on the v4.6.1, but also works smoothly on the .Net Framework 4.5.2 without any error information.

如何告诉我们您身边是否有任何错误消息?或者,如果我对您的问题有误解,请进一步解释,我会尽力帮助您解决.

How about telling us if there is any error message on your side? or if I misunderstand your question, please explain more about it, I will try to help you solve it.

最好的问候,


这篇关于System.Threading.Tasks.Extensions需要NET 4.5.2 Web API项目上的.NET Framework版本4.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆