Need a solution please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Need a solution please

I'm a beginner. I try running a basic code on Visual studio and it keep saying ConsoleApp.exe has existed with code 0 (0x0)

19th Sep 2020, 9:11 AM
Elie
Elie - avatar
4 Answers
+ 4
Chapter Black kindly show us your attempt firstly then only we can help you :) Hope you understand šŸ‘
19th Sep 2020, 9:15 AM
Piyush
Piyush - avatar
+ 2
According to stackoverflow You can disable it by checking theĀ Tools > Options > Debugging > General > Automatically close the console when debugging stopsĀ option: https://stackoverflow.com/questions/58179185/prevent-a-console-app-net-core-from-printing-exited-with-code-0-in-vs2019 other solution Use aĀ Console.ReadKey()Ā orĀ Console.ReadLine()Ā at the end of Main().
19th Sep 2020, 9:41 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
THANK YOU VERY MUCH
19th Sep 2020, 9:56 AM
Elie
Elie - avatar
0
https://code.sololearn.com/c21dq5qbdc7a/?ref=app I did that on Visual studio and it says visual studio cannot start debugging because the debug target C:\users\... Build errors ConsoleApp.exe has existed with code
19th Sep 2020, 9:31 AM
Elie
Elie - avatar