Problem with game entry point

Jul 8, 2010 at 6:01 AM

I got all my files and content transferred and everything builds fine except for "game.Run()":

static class Program    {        static void Main()        {            using (Nomis_LegacyIslandsGame game = new Nomis_LegacyIslandsGame())            {                game.Run();            }        }    }

 

It says that it "does not contain a definition for 'Run'" and I'm not sure where to start because I've never come across this before. Is there a using statement or DLL that I have to relink/add?

 

Jul 8, 2010 at 7:51 AM
Edited Jul 8, 2010 at 7:52 AM

You actually don't need Program.cs in a silversprite application (i.e. game.Run()). Your MainPage.xaml is used for the entry point. Check out step 3 in the Getting Your Game Going on the home page for example code to use.