EMU Not updating

MrLogic

Member
Nov 28, 2012
118
4
Hey devbest,I'm trying to edit an emu's console writing and commands,but when I save and try to debug,it throws me this error:
Code:
Error    1    Program 'C:\Users\Administrator\AppData\Local\Temporary Projects\Project1\obj\x86\Debug\Project1.exe' does not contain a static 'Main' method suitable for an entry point    Project1
Thanks.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
The error message speaks for itself really. You need a static 'Main' entry point to your source. Usually when you start a project it would be in Program.cs, add the following to one of your classes:

PHP:
[STAThread]static void Main() { }

Here is a thread asking what [STAThread] does:
 

utkucansa

New Member
Oct 18, 2013
1
0
Hello cheers from Turkey

using System;

class Example
{

public static void main()
{
Console.WriteLine("benim adım kırmızı");
}
}
I have written this basic program but I have got the same error 'C:\Users\Administrator\AppData\Local\Temporary Projects\Project1\obj\x86\Debug\Project1.exe' does not contain a static 'Main' method suitable for an entry point , I don't know what to do. Would you help me on this? I have read what has been written on upside but I didn't understand clearly. So.. Thank you for your help beforehand.
 

Users who are viewing this thread

Top