.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

2 REPLIES 2
Reply
Message 1 of 3
MartinSi
1713 Views, 2 Replies

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

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
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: MartinSi

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
Message 3 of 3
MartinSi
in reply to: MartinSi

thanks for your help

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost