Creating an early linked class, how to make separate files using CrmSvcUtil?

We are in the process of moving from CRM 2011 to CRM 2016, and so we are rewriting and restructuring quite a lot of our feedback code. One of the things we would like to do is to transfer the Early Bound classes from one giant file with all the classes to one class for each file.

I know that it was available in CRM 4.0, and that it can be done using XrmToolBox using the Early Bound Generator plugin, but I can’t figure it out for me!

Here is my command line to start CrmSvcUtil:

"C:\CRM_SDK\sdk\bin\crmsvcutil.exe" /url:http://XXX/XRMServices/2011/Organization.svc /o:"C:\CRM_SDK\sdk\Bin\Entities" /n:XXX.crm /serviceContextName:XrmServiceContext /domain:XXX /username:XXX /password:XXX

Currently it just outputs 1 file, but I want somewhere in 250 files!

Any help would be appreciated!

+4
source share
1 answer

The Early Ranks Generator has its own code that runs as part of the CrmSvcUtil write process, which splits the file, post-generation. There is no supported method for this via CrmSvcUtil without special code. Any reason you are not just using the early link generator? You can run it in command line mode if you want to make it part of the build process. It actually splashes out the required command line when creating objects / options / actions.

+1
source

Source: https://habr.com/ru/post/1620524/


All Articles