Ask coding questions

← Back to all posts
(C#) Unable to access classes outside of Program script
h
temeee

To start with, the project runs fine locally. I cloned my git repo to Replit and am trying to get my .NET Core console application to run in it. I didn't get very far, when trying to compile and run the main script, I'm getting this error:

Program.cs(8,4): error CS0103: The name Server does not exist in the current context

"Server" is a public static class within the same namespace. Any idea why it's throwing an error?

Voters
temeee
Comments
hotnewtop
SixBeeps

What's your file structure look like on the Repl?

temeee
SixBeeps

@temeee And you changed the .replit file to build your solution, right?