co_routine和VS2017版本15.2:兼容? [英] co_routine and VS2017 Version 15.2: compatible?

查看:132
本文介绍了co_routine和VS2017版本15.2:兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经从VS2013迁移到VS2017用于我的项目(包括cpprestsdk)并使用co_await更改.then()方法。我在网上看过一些东西,但实际上我再也无法编译我的解决方案了。无法打开pplawait.h忽略未知的opion
'/ await'

I have migrating from VS2013 to VS2017 for my project (that include cpprestsdk) and change .then() method with co_await. I have read something on the web but actually i can't compile my solution anymore. Cannot open pplawait.h ignoring unknown opion '/await'

建议?

ps:我有免费软件许可证VS

ps:i have a freeware licence of VS

推荐答案

H朋友,

当您第一次打开在早期版本的Visual Studio中创建的Visual C ++项目时,您可能需要
提示更新项目。该消息将询问您是否要升级到最新版本的Visual C ++编译器和库。

When you first open a Visual C++ project that was created in an earlier version of Visual Studio, you might be prompted to update the project. The message asks whether you want to upgrade to the most recent version of the Visual C++ compiler and libraries.

所以我想知道你是否升级了项目以适应VS2017,这里有关于细节的文章,虽然它的目标是VS2015,但我希望它有用。

so I wonder if you've upgrade the project to adapt to VS2017, here is the article about the details though its target is VS2015, but I hope it's helpful.

https: //msdn.microsoft.com/en-us/library/hh690665(v=vs.140).aspx

最好的问候,

Fletcher


这篇关于co_routine和VS2017版本15.2:兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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