Reputation: 491
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
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