CS5001, Program 'program' does not contain a static 'Main' method

CS5001, Program 'program' does not contain a static 'Main' method

Anonymous
Not applicable
2,074 Views
2 Replies
Message 1 of 3

CS5001, Program 'program' does not contain a static 'Main' method

Anonymous
Not applicable
I have a problem getting my program to work in C #.
The source code is an original Autodesk code and I implemented the resource files acmgd.dll and acdbmgd.dll in my project.
However I always get an Compiler error: CS5001, Program 'program' does not contain a static 'Main' method suitable for an entry point.
Since I use CommandMethod() I thought I needn’t the static Main() method.
Can anyone help me with this problem?

kind regards Edited by: MartinSi on Feb 8, 2010 12:40 PM
0 Likes
2,075 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
From what little you've mentioned, my guess is that you created a
WindowsApplication (.exe) project, not a ClassLibrary (.dll) project.

Have you been working with C# and .NET long?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6332176@discussion.autodesk.com...
I have a problem getting my program to work in C #.
The source code is an original Autodesk code and I implemented the resource
files acmgd.dll and acdbmgd.dll in my project.
However I always get an Compiler error: CS5001, Program 'program' does not
contain a static 'Main' method suitable for an entry point.
Since I use CommandMethod() I thought I needn't the static Main() method.
Can anyone help me with this problem?

kind regards

Edited by: MartinSi on Feb 8, 2010 12:40 PM
0 Likes
Message 3 of 3

Anonymous
Not applicable
thanks for your help
0 Likes