HighTechTalks DotNet Forums  

error on creation of dll

CSharp microsoft.public.dotnet.languages.csharp


Discuss error on creation of dll in the CSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
rahul gupta
 
Posts: n/a

Default error on creation of dll - 07-11-2010 , 01:54 AM






while m creating a dll i have written dll code under class library
and created a console app. to link to dll by adding the refrene
but when i m compilling the project following error is shown

a project with an output type of library can not be started directly.

In order to debug this project add an executable project to this
solution
which refrences the library project.set the executable project as the
starting project.


plz help me to sout out wid this error.

Reply With Quote
  #2  
Old   
Peter Duniho
 
Posts: n/a

Default Re: error on creation of dll - 07-11-2010 , 08:43 AM






rahul gupta wrote:
Quote:
while m creating a dll i have written dll code under class library
and created a console app. to link to dll by adding the refrene
but when i m compilling the project following error is shown

a project with an output type of library can not be started directly.

In order to debug this project add an executable project to this
solution
which refrences the library project.set the executable project as the
starting project.


plz help me to sout out wid this error.
As the error says, you need to set an executable project as the startup
project. Currently, you apparently have your DLL project as the startup
project, but since a DLL doesn't have an executable entry point, that
won't work.

To fix the problem, in the Solution Explorer, right-click the project
for your console application and choose the "Set as Startup Project"
menu item.

The project currently selected as the startup project will be shown in
the Solution Explorer in bold text. Make sure the startup project is
your console application, and not the DLL.

Pete

Reply With Quote
  #3  
Old   
rahul gupta
 
Posts: n/a

Default Re: error on creation of dll - 07-11-2010 , 09:10 AM



On Jul 11, 6:43*pm, Peter Duniho <NpOeStPe... (AT) NnOwSlPiAnMk (DOT) com> wrote:
Quote:
rahul gupta wrote:
while m creating a dll i have written dll code under class library
and created a console app. to link to dll by adding the refrene
but when i m compilling the project following error is shown

a project with an output type of library can not be started directly.

In order to debug this project add an executable project to this
solution
which refrences the library project.set the executable project as the
starting project.

plz help me to sout out wid this error.

As the error says, you need to set an executable project as the startup
project. *Currently, you apparently have your DLL project as the startup
project, but since a DLL doesn't have an executable entry point, that
won't work.

To fix the problem, in the Solution Explorer, right-click the project
for your console application and choose the "Set as Startup Project"
menu item.

The project currently selected as the startup project will be shown in
the Solution Explorer in bold text. *Make sure the startup project is
your console application, and not the DLL.

Pete
Thnax very much my problem got solved....

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.