Skip to content

Template for C++ WinUI App generates D9047: option 'await' has been deprecated #6012

@ChrisGuzak

Description

@ChrisGuzak

Describe the bug

I created a new WinUI C++ Packaged App and built it. this warning was emitted.

Should? be easy to switch to the conformant mode.

cl : command line  warning D9047: option 'await' has been deprecated and will be removed in a future release.
     Standard C++ coroutines are available by default in C++20 or later, or use '/await:strict' in earlier language modes.
cl : command line  warning D9047: option 'await' has been deprecated and will be removed in a future release.

Steps to reproduce the bug

  • in VS, File New Project... WinUI C++ App Packaged
  • F5 to build

observe the warning output

Expected behavior

no warnings!

To fix this, updating <LanguageStandard> to stdcpp20 resolves the warning.

NuGet package version

None

Packaging type

No response

Windows version

No response

IDE

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-WinAppSDK:TemplatesTopics related to Visual Studio templates for Windows App SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions