Click here to Skip to main content
15,891,787 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Friends
My Dll Working properly in a C# Project But Don't Show XML Comments (///) in C# Editor After Add To Refrences!

And Show This Error When I Run Dll Project :

A project with an Output Type of Class Library cannot be started directly.

In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.



pls Help me
Posted
Updated 6-Mar-15 9:49am
v4
Comments
PIEBALDconsult 6-Mar-15 15:51pm    
It sounds like you are trying to describe two separate problems.

As regards XML comments, you must remember that they are not stored in the DLL.
https://msdn.microsoft.com/en-us/library/vstudio/b2s063f7(v=vs.100).aspx[^]

If you didn't create the XML file when you compiled the DLL, then you'll need to do so and keep it in the same directory as the DLL.
Remember that your project may copy the DLL to its own directory and then it won't be able to find the XML file, so you'll need to work around that.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 6-Mar-15 16:25pm    
Correct, 5ed. I also added in Solution 2 about the feature settings in project Properties and configurations.
—SA
In addition to Solution 1:

Also, look at project Properties in different configurations. By default, a project template creates two configurations for you, "Debug" and "Release", and, also by default, XML comments are enabled in first configuration and disabled in the second one. You can edit any configuration and enable or disable this feature, but remember that those comments can only be useful for development, not for the deployment.

—SA
 
Share this answer
 
Comments
phil.o 6-Mar-15 19:28pm    
"those comments can only be useful for development, not for the deployment"
Unless your dll is a framework's one :)
Sergey Alexandrovich Kryukov 6-Mar-15 19:46pm    
Sure. Good point.
Thank you,
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900