Create a new Developer Toolkit project

 

Applies To: Dynamics CRM 2013

Like any Visual Studio solution, you begin by creating a new project. In the New Project dialog box under Visual C#, select the Dynamics CRM group to view the available project templates.

In This Topic

Project template options

Managing projects

Project template options

The following table introduces the available project templates.

Project template option

Description

New Visual Studio Solution Template for Dynamics CRM 2013

Solution template for creating a new instance of a Visual Studio Solution for Microsoft Dynamics CRM 2013.

Dynamics CRM 2013 Plug-in Library

Project template for creating a new Microsoft Dynamics CRM 2013 Plug-in class library (.dll).

Dynamics CRM 2013 Workflow Library

Project template for creating a new Microsoft Dynamics CRM 2013 Workflow class library (.dll).

Dynamics CRM 2013 Package

Project for creating a Microsoft Dynamics CRM 2013 Package project.

Dynamics CRM 2013 XAML Workflow Library

Project template for creating CRM Workflows using the Visual Studio Workflow Designer.

Note

Below the Installed Templates for Visual C#, you will see a CRM Workflow Library group that contains some CRM Workflow Library project templates. Do not use these project templates.

The New Visual Studio Solution Template for Dynamics CRM 2013 project creates the following types of solution components:

  • Silverlight Application

  • Plug-in Library

  • Workflow Library

  • Web Resources (part of the CrmPackage project)

Note

By default, a XAML Workflow Library is not included.

The New Visual Studio Solution Template for Dynamics CRM 2013 is a good starting point for any new solution. You can add and remove new projects to and from the solution. You should not remove the CrmPackage project.

The Dynamics CRM 2013 Plug-in Library, Dynamics CRM 2013 Workflow Library, and Dynamics CRM 2013 XAML Workflow Library project templates are typically used for more advanced scenarios where you may want to add multiple assemblies to a project or if you are only interested in developing that specific component. Before you can deploy a solution that contains only a project of these types, you must add a Dynamics CRM 2013 Package (CrmPackage) project to the solution.

You can add a regular Silverlight Application project to your CRM solution. When you add a Silverlight application, do not select the option to host the Silverlight application in a new website. You can also add a CRM Package project to an existing Silverlight Application project to enable deploying it to Microsoft Dynamics CRM.

Note

A Microsoft Dynamics CRM solution can contain only a single CrmPackage project.

Managing projects

Use the following procedures to manage your Visual Studio solution.

Add a new project to the solution

  1. Right-click the solution and select Add and then New Project.

  2. Select one of the following from the installed templates under Visual C#:

    • Dynamics CRM > Dynamics CRM 2013 Plug-in Library

    • Dynamics CRM > Dynamics CRM 2013 Workflow Library

    • Dynamics CRM > Dynamics CRM 2013 XAML Workflow Library

    • Silverlight > Silverlight Application

Add an existing project to the solution

  1. Right-click the solution and select Add and then Existing Project.

  2. Navigate to the .csprog file that represents the project you want to add.

  3. In the CrmPackage project, right-click the References and select Add Reference.

  4. In the Projects tab of the Add Reference dialog box, select the projects and then click Add to add them to the list of selected projects and components.

  5. Click OK to add the projects and close the Add Reference dialog box.

Remove a project from the solution

  • Right-click the project and select Remove. The project will automatically be removed from the CrmPackage references.

See Also

Developer Toolkit for Microsoft Dynamics CRM 2013
Install or uninstall the Developer Toolkit
Developer toolkit features
Deploy a solution using the developer toolkit
Create and deploy plug-ins using the Developer Toolkit
Create and deploy workflow libraries using the Developer Toolkit
Create and deploy XAML workflows using the Developer Toolkit
Create and deploy web resources using the Developer Toolkit