Complete Noob question

Hey all, I'm completely newb to c#. I just started up a very basic application in VS2005, and cannot figure out why the following code does not actually writeline. I build and then try to run using Ctrl-F5.

using System;
public class HelloWorld
{
    public static void Main()
    {
        Console.WriteLine("Hello World! From Softsteel Solutions");
    }

}

Thanks
Dodger42Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bruintjeCommented:
Hello Dodger42,

you seem to miss namespace and every project needs one, within the namespace you can add you classes etc....

if you start a new project from the start menu and choose for a console application you'll end up with a Progam.csclass file that contains a carcass like
--------------------------
using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    public class HelloWorld
    {
        public static void Main()
        {
            Console.WriteLine("Hi there");  
        }
    }
}
--------------------------
i filled your public declaration instead of the wizard code and it ran to the commandline for me

for more info on starting this
http://www.ilopia.com/Articles/CSharp/IntroCSharp.aspx

hope this helps a bit
bruintje
Dodger42Author Commented:
Ok that worked thanks. Just one question though, when you use the build function within VS2005, should it output the program.exe to the project folder? I had to use csc for this example.

Thanks
bruintjeCommented:
- you should first save the project in VS2005
- next you can choose build from the menu
- it will store build output in the application folder you made earlier
- there will be 2 folders debug and release both of which contain an exe for your application in their respective bin folders

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.