Empty Project in Visual Studio 2008

C

Curious

I installed Visual Studio 2008 Express Edition.

I created a new project and picked "Empty Project" as project type.

Then I don't see any file in this project. Normally Visual Studio
would present a default file with a "main". However, I don't see any
default method/file.

Any advice on what to do the next?
 
F

Family Tree Mike

It sounds like you created an empty solution, not an empty project. Right
click on the solution, and add a project.
 
C

Curious

Family Tree Mike,

There is a project in the solution:

Solution: Solution 'Swings' (1 project)
Underneath it is the project, Swings.

However, there is only "References" underneath the project. No .cs
file.

I've never used "Empty Project" option (it seems that it's only in
Visual Studio 2008). I was told that "Empty Project" is similar to
"Console Application" in VS 2008. However, there's a default
"Program.cs" created in a "Console Application" project, but there is
none in "Empty Project".

Could it be that this is a bug in VS 2008?
 
F

Family Tree Mike

Sorry, I had never even noticed that project type.

Now seeing it, I can't say it is a bug, because it is "empty". I would say
however it seems fairly useless to me.
 
C

Curious

Hi Miro,

Yes, it allows me to add a class/form to the project. Maybe I should
start from there?
 
C

Curious

Miro,

I've added a "Code File" and put in the following code:

static Main ()
{

}

However, it doesn't compile. Compilation error is below:

Expected class, delegate, enum, interface, or struct

If I add a Class, that wouldn't work, either, because it asks for an
Main as entry point of the program.

I don't prefer to use this type of project, but the associate I work
with prefers this type.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top