Having problems compiling the Xrm for CRM 2015.
Its normal or us developers to reuse code from project to project and simply change some methods or functions no longer been used or just because they become deprecated. The CRM 2015 uses a new framework and when we try to compile something strange happens, well I’m talking about the Xrm.cs we use in our projects (after executing CrmSvcUtil.exe to create the file Xrm.cs) to compile the DLL. Its usual to show that the reference of the new DLL we just copy from the new CRM 2015 SDK it can`t find it… but why? If is there?
So to solve this issue we need to change the framework for 4.5.2 on the project properties.
1- Right click on Project and go to “Application” select on Target Framework select “.net Framework 4.5.2” if not exist like this example you need to update the Visual Studio.
2- Right click on the Reference and check if you are using the version 7.0.0.0 (Its means this is the new CRM 2015 SDK)
Notes:
How to create the Xrm file:
Execute this command on windows command prompt: CrmSvcUtil.exe /url:http://{servername or ip address}:{port}/{organization name}/XRMServices/2011/Organization.svc /username:{username} /password:{password} /DOMAIN:{network domain} /namespace:{ex. Xrm or other namespace you want to use in you project} /servicecontextname:ServiceContext /out:{ex. Xrm or other name for the file}CRMProxy.cs
So to solve this issue we need to change the framework for 4.5.2 on the project properties.
1- Right click on Project and go to “Application” select on Target Framework select “.net Framework 4.5.2” if not exist like this example you need to update the Visual Studio.
2- Right click on the Reference and check if you are using the version 7.0.0.0 (Its means this is the new CRM 2015 SDK)
Microsoft .NET Framework 4.5.2 download:
http://blogs.msdn.com/b/dotnet/p/dotnet_sdks.aspx#
Notes:
How to create the Xrm file:
Execute this command on windows command prompt: CrmSvcUtil.exe /url:http://{servername or ip address}:{port}/{organization name}/XRMServices/2011/Organization.svc /username:{username} /password:{password} /DOMAIN:{network domain} /namespace:{ex. Xrm or other namespace you want to use in you project} /servicecontextname:ServiceContext /out:{ex. Xrm or other name for the file}CRMProxy.cs
Comments
Post a Comment