VS2022 Missing properties node and project file while creating new .NET 6.0 project

Eric Wu 0 Reputation points
2024-01-10T08:37:23.0233333+00:00

Hello, I am new to C#. I have some trouble creating project. Here I am creating a console app, but it seems that the "properties" node is missing and the .cs file is not including into the project. Also, there should be a app.config file too but now missing.

What is wrong? Thanks.

issue1

Developer technologies .NET Other
Developer technologies Visual Studio Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-01-10T09:54:30.8366667+00:00

    Hi @Eric Wu , Welcome to Microsoft Q&A,

    If you just create a .Net 6.0 Console project, it does not contain properties itself. (FrameWork contains properties.)

    Your project only lacks one class file. You can right-click->Add->New items and try to create one yourself. as follows:

    User's image

    Here is the official tutorial to create it: Tutorial: Create a simple C# console app in Visual Studio (part 1 of 2)

    Try to open visual studio installer and perform repair.

    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 comments No comments

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.