Can't find Console APP C# (Universal Windows) on Visual Studio 2022 Community

longevity uyl 285 Reputation points
2023-12-12T02:54:59.0566667+00:00

I would like to create a new console project for using Windows.Devices.Enumeration namespace. But I can't find Console APP C# (Universal Windows) on Visual Studio 2022 Community.

Developer technologies | C#
{count} votes

Accepted answer
  1. Anonymous
    2023-12-12T03:04:53.9566667+00:00

    Hi @longevity uyl , Welcome to Microsoft Q&A,

    Sorry, I misunderstood what you meant.

    Windows.Devices.Enumeration is a UWP API.

    You should create a uwp project.

    If you can't create it, go to installer to install it.

    enter image description here

    I could not give you further compilation advice regarding UWP, you can post a case with UWP tag.


    Because yours is the Chinese version, the translation is different.

    What you are talking about is the .net version of the Console App.

    You can just select the first one on the right.

    The .Net Framework refers to the windows-specific version.

    Best Regards,

    Jiale


    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.