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.
Program not running in Visual Studio 2019
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.
7 answers
Sort by: Most helpful
-
-
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.** -
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; :( -
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. -
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!