Project references in a WinUI 3 C++ project

ata6502 6 Reputation points
2022-09-20T18:48:47.607+00:00

Hi,

When I build a WinUI 3 app (even the PhotoEditor sample from SDK) these references show up in the C++ project:

243125-image.png

Why is that? Why do we need references to UWP in WinUI 3? Also, why there are warnings on some references?

Thanks,
Leszek

Environment: VS Community 2022 (64-bit) version 17.3.3

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
729 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,554 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Junjie Zhu - MSFT 15,601 Reputation points Microsoft Vendor
    2022-09-21T02:47:21.797+00:00

    Hello @ata6502 ,
    Welcome to Microsoft Q&A!

    Winui3 is not a technology that is completely independent from other desktop development, you can see the following introduction Windows UI Library (WinUI).

    The Windows UI Library (WinUI) is a native user experience (UX) framework for both Windows desktop and UWP applications.

    By incorporating the Fluent Design System into all experiences, controls, and styles, WinUI provides consistent, intuitive, and accessible experiences using the latest user interface (UI) patterns.

    With support for both desktop and UWP apps, you can build with WinUI from the ground up, or gradually migrate your existing MFC, WinForms, or WPF apps using familiar languages such as C++, C#, Visual Basic, and Javascript (using React Native for Windows).

    For the relationship between other app and winui3, you can refer to this document Overview of app development options .

    Thank you.
    Junjie


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.