0
由于某些客户端计算机上的Windows XP,我正在.NET Framework 4.0上开发WPF中的桌面应用程序。Microsoft.Bcl.Async在Windows XP中不起作用
我需要在.NET 4.0中的异步/等待,所以我添加了对Microsoft.Bcl.Async(最新的NuGet版本)的引用。每当我使用异步/等待关键字,程序与下面的例外在Windows XP启动时崩溃(在Windows工作7+):
Could not load file or assembly 'System.Core, Version=2.0.5.0,
Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or
one of its dependencies. The given assembly name or codebase was
invalid. (Exception from HRESULT: 0x80131047)
谢谢。你为我节省了几个小时的工作! – Fazi