Empty Project in Visual Studio 2008

  • Thread starter Thread starter Curious
  • Start date Start date
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?
 
It sounds like you created an empty solution, not an empty project. Right
click on the solution, and add a project.
 
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?
 
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.
 
Hi Miro,

Yes, it allows me to add a class/form to the project. Maybe I should
start from there?
 
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.
 
Back
Top