首页 > 解决方案 > How to make an asynchronous call on .NET Framework 4.0 without using Microsoft.Bcl.Async nuget package?

问题描述

To give some context, I'm working on a Winforms application on .NET Framework 4.0. I need to call an internal service asynchronously without having to change the .NET Framework version or adding any Nuget packages. I'm familiar in using async/await but our current requirements doesn't allow for .NET framework upgrades

标签: c#.netwinformsasynchronousasync-await

解决方案


简而言之:没有它就行不通。

在这里回答:.net 4.0 中没有 async/await 关键字

此处的解决方法:如何在项目 target.net 4.0 中使用异步关键字


推荐阅读