CRM Developer Toolkit VS 2015: A Project with an output type of class library cannot be started directly RRS feed

  • Question

  • I recently installed the developer toolkit for Dynamics CRM 365 on Visual Studio 2015.

    I recently created a plugin, deployed it to CRM and it works fine. I then restarted my computer, opened up the Visual Studio Solution to make changes to the plugin, and when I hit F5 to deploy, I got the following 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 reference the library project. Set the executable project as the startup project."

    I am confused as why I would get this. Does anyone know how to solve this? Thank you in advance.

    Mike Karls

    Monday, October 2, 2017 2:05 PM

All replies

  • You can build a C# class file but you cannot run it in vs. If you want to run it then make a console application. Plugins cannot be executed from visual studio.
    Wednesday, October 4, 2017 2:34 PM