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 odpowiedzi
+ 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