D
Dave
This morning I copied a C# console project file I was working on over the
week-end to my workstation and tried to run it. I got the message:
Program 'C:\Visual Studio\myProj.exe' does not have an entry point defined
My code looks like this:
using System;
using System.Reflection;
namespace myProj
{
public class Class1
{
public static int Main(string[] args)
{
try
{
.....
}}}
So I went to Project Properties|Common properties|General, and set the
Startup object to the name of the class (Class1)
Now I get the message:
Could not find 'Class1' specified for Main method
What would cause my project to lose a reference to Main? How can I fix it?
week-end to my workstation and tried to run it. I got the message:
Program 'C:\Visual Studio\myProj.exe' does not have an entry point defined
My code looks like this:
using System;
using System.Reflection;
namespace myProj
{
public class Class1
{
public static int Main(string[] args)
{
try
{
.....
}}}
So I went to Project Properties|Common properties|General, and set the
Startup object to the name of the class (Class1)
Now I get the message:
Could not find 'Class1' specified for Main method
What would cause my project to lose a reference to Main? How can I fix it?