I’m using this tutorial to learn how C#, and I copy the code from the tutorial into my repl but I get the same error:
CSC : error CS1555: Could not find 'Program' specified for Main method [/home/runner/C/main.csproj]
The build failed. Fix the build errors and run again.
exit status 1
Remove the namespace, and your code should work: repl link here
Replit only runs the static void main method in theProgram class. It cannot be in a namespace, and this is because of the main.csproj file which says what file to run.