Install Dynamics 365 Developer Toolkit with Visual Studio 2017

Visual Studio was officially released today, and with it’s release comes the dilemma for Dynamics 365 developers. Do you keep going with VS 2015 (or maybe VS2013, VS 2012 or 2010!), or do you bite the bullet and install Visual Studio 2017?

9

In the past, I would normally hold off on a new Visual Studio installation until there is a service pack available, but after reading that Visual Studio 2017 is focused on performance improvements and speed, I decided to install it on an Azure Developer VM to see if I could get the Dynamics 365 Developer toolkit working on it.


Microsoft Developer toolkit for Dynamics 365 / CRM has traditionally lagged behind Visual Studio in terms of releases, but with a few tweaks, it’s possible to get it up and running.

Step 1 – Download the VSIX for Dynamics 365.

This can be downloaded from here. Save it somewhere locally.

1

Step 2 – Extract the VSIX.

The VSIX is an archive. We need to update a file in there to get it to install. My tool of choice for doing this is 7zip. Right click and extract to a subfolder.

2

Step 3 – Update the VSIX Manifest

With a text editor, update the extension.vsixmanifest file. The existing VSIX will only work up to Visual Studio 2015 (14.0), so you need to update the references from version 14 to version 15. Once complete as shown below, save the file.

3

Step 4 – Install the VSIX

Because the VSIX was compiled by and for VS 2015, you will get a warning when installing, but it should still install successfully. We won’t be able to get rid of this warning, but just click OK, close and Restart Visual Studio.

4

5

Step 5 – Set your  Dynamics 365 SDK Paths in Visual Studio

If you haven’t already installed the SDK, download and extract it now. Then go to Tools -> Options -> Dynamics 365 Developer Toolkit -> Tool Paths. Set the paths to point to the plugin registration tool folder and bin folder where you extracted your SDK.

7

Step 6 – Update the Toolkit dlls with more recent versions from the SDK (Optional)

To avoid some connectivity issues with the Developer Toolkit, I found by replacing the embedded SDK dlls which have an older version than those in the current Dynamics 365 SDK it worked fine. You can do this before installing by updating the packed VSIX and reinstalling. Alternatively you can update post-install by looking for and updating the dlls in the folder C:\Users\<user>\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\<pluginid>

Update these libraries :
Microsoft.Crm.Sdk.Proxy.dll
Microsoft.IdentityModel.Clients.ActiveDirectory.dll
Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll
Microsoft.Xrm.Sdk.Deployment.dll
Microsoft.Xrm.Sdk.dll
Microsoft.Xrm.Sdk.Workflow.dll
Microsoft.Xrm.Tooling.Connector.dll
Microsoft.Xrm.Tooling.CrmConnectControl.dll
Microsoft.Xrm.Tooling.Ui.Styles.dll
Microsoft.Xrm.Tooling.WebResourceUtility.dll

As Microsoft appear to be providing updates to this toolkit more frequently than in the past, I would be inclined to only update these DLLs if you run into connectivity problems after installing.

So far so good for me – I have successfully connected to both CRM 2016 and 365 on-premise and online instances.

Good luck!

This entry was posted in Dynamics 365, Uncategorized and tagged . Bookmark the permalink.

3 Responses to Install Dynamics 365 Developer Toolkit with Visual Studio 2017

  1. Pingback: Hosk’s Top Dynamics 365 Articles of the week – 31st March – Hosk's Dynamic CRM Blog

  2. Pingback: Hosk’s Top Dynamics 365 Articles of the week – 31st March - Microsoft Dynamics CRM Community

  3. Alex says:

    anyone also got this error with Workflow Project: HRESULT: 0x80070057 (E_INVALIDARG))

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s