|
-
Jun 11th, 2007, 07:40 AM
#1
Thread Starter
Hyperactive Member
Simple Question--Simple Answer? - No accessible 'Main' method
Working on creating just a simple Forms Class (dll) -- just one form that can be used from multiple apps. Whenever I attempt to build I get this error and the build fails..
------ Build started: Project: XYZCorp.Security.Maintenance, Configuration: Debug Any CPU ------
Preparing resources...
Updating references...
Performing main compilation...
error VR8001: No accessible 'Main' method with an appropriate signature was found.
Build complete -- 1 error(s), 0 warning(s)
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
Using ------ Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Thanks
gollnick
-
Jun 11th, 2007, 10:52 PM
#2
Re: Simple Question--Simple Answer? - No accessible 'Main' method
You're trying to build your project as an application, which needs a main method as an entry point. Change the assembly type to a class library in the project properties.
-
Jun 12th, 2007, 05:50 AM
#3
Thread Starter
Hyperactive Member
Re: Simple Question--Simple Answer? - No accessible 'Main' method
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|