web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 365 Plugin: A project with an output type of class library cannot be started directly

(0) ShareShare
ReportReport
Posted on by 180

I am using VS 2015 with the Developer's Toolkit for CRM 365 and I created a plugin, deployed it, and it works fine.

After restarting my machine, I then re-opened the Visual Studio 2015 solution, connected to my CRM environment, made a minor change to my code and then went to deploy the solution hitting F5 and got the error: "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."

What does this mean and what do I need to do to deploy my plugin? Thank you in advance

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mike Karls Profile Picture
    180 on at
    RE: CRM 365 Plugin: A project with an output type of class library cannot be started directly

    Nevermind, If I go Build then Deploy Solution it works. I'm just used to hitting F5 and deploying from that.

  • Suggested answer
    Jeevarajan Kumar Profile Picture
    781 Most Valuable Professional on at
    RE: CRM 365 Plugin: A project with an output type of class library cannot be started directly

    Hi Mike,

    The plug-ins are class libraries (.dll), it can't be run like a console, windows, and web application. This .dll file is usually consumed by any of the applications I mentioned. In .Net application world, it is common to write business logic as .dll for their portability.  Coming back to plugins, you can build and then deploy the solution, (right click on the solution in Solution Explorer and click Deploy), it will be deployed to the solution that you had configured while connecting developer toolkit to the CRM.

    Please mark this as an answer if it is helpful.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans