Skip to content
Sign upLog in
← Back to Community

(C#) Unable to access classes outside of Program script

Profile icon
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?

image

Voters
Profile icon
JustCallMeRay
Profile icon
temeee
Comments
hotnewtop
Profile icon
SixBeeps

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

Profile icon
temeee

@SixBeeps

test

Profile icon
SixBeeps

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