且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

调试器无法识别等待方法返回值的变量

更新时间:2022-12-05 19:19:07

我不确定在较新的 Visual Studio 更新中是否还会发生这种情况(我没有那个代码库了)但我的问题可能是将 Async-Await 调试与代码契约相结合.不使用代码契约时我没有看到问题.

I'm not sure if this still happens with newer Visual Studio updates (I don't have that code base anymore) but the problem in my case was probably combining Async-Await debugging with code contracts. I haven't seen the problem when not using code contracts.