Kelvin
Kelvin

Reputation: 491

Visual Studio JavaScript Intellisense for Dynamics CRM 2015

Remember back in CRM 2011 days, there is this XrmPageTemplate.js file from CRM SDK? Visual Studio will give you nice JavaScript intellisense if you refer to this file from your JavaScript. My question is how do you do the same for CRM 2015? Thanks.

Upvotes: 3

Views: 1013

Answers (1)

Henk van Boeijen
Henk van Boeijen

Reputation: 7918

On GitHub you can find the Definitely Typed project containing TypeScript definition files, among which those for Dynamics CRM.

Add the definition file to your web project and name it, say, "Xrm.intellisense.ts". Reference it in your Javascript file by adding the following line at the top of the page. (You will probably need to adjust the path.)

/// <reference path="/Scripts/References/XrmPage.intellisense.ts"/>

Intellisense will work great with Resharper.

Upvotes: 1

Related Questions