{Quick Tip}Apply CRM 2015 Look alike CSS to custom control/ web application

Scenario: Customer has a portal integrated with CRM 2015 and wants the look and feel of the web application to be like CRM 2015.

Resolution: First thing to use in CRM 2011 days was that CSS was outlined in a folder in the SDK folder. But ever since CRM 2013 is out, this approach is not possible as it is not exposed in CRM CSS via SDK.

As per the official blog link from Dynamics PFE Team mentioned here:

http://blogs.msdn.com/b/crminthefield/archive/2014/07/03/css-style-reference-using-developer-tools.aspx

The approach is to use Developer tools in your browser and take out the CSS as required. So, I used the approach mentioned in the above link and apply it to ASP.NET plain website. Here are the results:

clip_image002

clip_image004

Hope it helps, Happy CRMing!

{Quick Tip}The curious case of the invisible .net 4.5.2 runtime

I was upgrading ERD generator to CRM 2015 Update 1 and funnily even one thing that I needed to fix was to increase .net runtime to 4.5.2.

To my surprise, even after installing the .net runtime. I have installed .Net Framework 4.5.2 on Windows 7 but in Visual Studio 2013 I do not see the

.Net Framework 4.5.2 option (see screenshot).

So my wonder was how do I target my project for .Net 4.5.2?

clip_image002

It was just invisible:

clip_image003

The resolution was that just installing the runtime doesn’t get the required runtime to Visual Studio.

You need to install the Microsoft .NET Framework 4.5.2 Developer Pack from following link: https://www.microsoft.com/en-us/download/details.aspx?id=42637

This contains the following components (emphasis added by me):

.NET Framework 4.5.2

.NET Framework 4.5.2 Multi-Targeting Pack: Contains the reference assemblies needed to build apps that target the .NET Framework 4.5.2

.NET Framework 4.5.2 Language Packs

.NET Framework 4.5.2 Multi-Targeting Pack Language Packs: Contains the IntelliSense files to display help while building apps that target the .NET Framework 4.5.2

through Visual Studio and third party IDEs.

Hope it helps! Happy CRMing!