CSC : error CS1555: could not find "Program" specified for Main Method

So, I’ve recently discovered Replit and found it would be really useful for coding on the go. I imported the files from my project in VS code, but it keeps throwing up this error. I’ve seen another post on the same topic but its answer did not work for me, I hope someone could be of assistance.

Here is my code: https://replit.com/@EliotPotts/BlobAI#Program.cs

Basically you need to go into main.csproj and change <StartupObject>Program</StartupObject> to <StartupObject>AI_Blobos.Program</StartupObject>

dotnet couldn’t find the class because it was in a namespace

1 Like

It works now, thank you so much! :smiley:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.