No option to select CRM connection in Visual Studio 2012

Posted on Posted in MS CRM 2011, MS Dynamics, MS Dynamics CRM

No option to select CRM connection in Visual Studio 2012

Even though Solution has a CrmPackage as part of it and developer tool is installed.

Tried deploying it but obviously got error

The connection to the Dynamics CRM Server is unavailable.Error: The connection to the Dynamics CRM Server is unavailable.

This is because we don’t have a valid connection. Usually this happens when you move solution from source safe to an other solution or create a copy of it.

Looked at MS Visual Studio Solution file (open in notepad) and there is a Global section

Inside Global section CRM part was missing

Added code below to make it work

GlobalSection(CRMSolutionProperties) = preSolution

SolutionIsBoundToCRM = True

EndGlobalSection

After adding above code and restarting visual studio with my solution all worked perfect and I was able to connect to CRM and deploy plugin