Limit CrmSvcUtil to generate only the code needed for my solution

This is what I am doing now

CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization,Microsoft.Xrm.Client.CodeGeneration" /url:http://pcrm/Adzz/XRMServices/2011/Organization.svc /out:Xrm.cs /username:xxxx /password:xxxx /domain:xxxx /namespace:xxxx /serviceContextName:XrmServiceContext

      

When I use the "CrmSvcUtil" utility - it creates all entities, how can I restrict it so that only solution objects will generate the code?

+3


source to share


1 answer


See Extensions for Code Generation Tool . The interface that should help you is this ICodeWriterFilterService

. One page has a sample implementation and it points to examples in the SDK.



EDIT: For another great example see Nicknow's comment below

+6


source







All Articles