The type or namespace name ‘Xrm’ does not exist in the namespace ‘Microsoft’ (are you missing an assembly reference?)
You have to change .NET Framework version in your projects, if you use CRM 2015
If you say “.NET Framework 4.5.2 not showing in Visual Studio” or “How to select .NET 4.5.2 as a target framework in Visual Studio ? “, follow the links below.
You can find some helpful links about that :
Compatibility with Microsoft Dynamics CRM 2015
https://support.microsoft.com/en-us/kb/3018360
Microsoft.Xrm.Sdk version : 7.0.0.0
Download .NET Framework 4.5.2 Developer Pack
https://www.microsoft.com/en-us/download/details.aspx?id=42637
This pack contains the following components :
- .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.
Visual Studio and .NET Framework
https://msdn.microsoft.com/en-us/library/dn481609.aspx
Moving to the .NET Framework 4.5.2
http://blogs.msdn.com/b/dotnet/archive/2014/08/07/moving-to-the-net-framework-4-5-2.aspx