Program not running in Visual Studio 2019

Hieu HO 1 Reputation point
2021-04-04T00:03:24.057+00:00

Hello,

I just installed Visual Studio 2019 onto my laptop and I can't run or debug anything since I installed the program. I am assuming I have nothing in my "solutions". Is that why nothing is working? I appreciate if someone can guide me to fixing this error.

84234-error.png

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,755 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,002 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Viorel 118K Reputation points
    2021-04-04T05:39:14.29+00:00

    Before writing the program, try creating a project: go to menu, File, New, Project, select C# language, select “Console App (.NET Framework”), press "Next", etc. This will create a simple program that can be run. Then enter your code inside the Main function.


  2. Dylan Zhu-MSFT 6,421 Reputation points
    2021-04-05T08:16:17.837+00:00

    Hi HieuHO,

    In visual studio , you need a solution with a project for C# development(build, debug..., etc). You can follow this document to start the trip of C#: Quickstart: Use Visual Studio to create your first C# console app

    Best Regards,
    Dylan


    If the answer is helpful, please click "Accept Answer" and upvote it.
    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.**


  3. Rafael Siqueira De Freitas 1 Reputation point
    2021-07-10T03:18:16.867+00:00

    Hi @Hieu HO

    Did you manage to solve your problem?
    I'm Facing the same error and can't find a way to solve it; :(

    0 comments No comments

  4. SaeedMZF 1 Reputation point
    2021-09-18T10:55:57.33+00:00

    Hello

    Please let me know if you find a solution
    I am also involved in this problem.

    0 comments No comments

  5. Yang, David 1 Reputation point
    2022-06-01T16:40:08.507+00:00

    Hi, a simple solution for me was using the default folder they specified to keep the programs in. For example

    C:\Users\<Your Name>\source\repos

    This was the one they automatically set for you and if you change where you store the project, it may not know where to look for the files.

    Hope this helps!

    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.