Я пытаюсь использовать CrmSvcUtil с помощью следующей команды:
C: \ TMP \ sdk \ microsoft.xrm \ tools> crmsvcutil.exe / connectionString : "Тип аутентификации = AD; Server = myip; User ID = myusername; Password = xxx" / generate: cs /out:schema.cs / namespace: Xmr dataContextClassName: XrmServiceContext
И это работает, пока я не дойду до строки, выдает исключение:
Building source code for the entity named 'subscriptionclients'...
Building source code for the entity named 'subscriptionsyncinfo'...
Building source code for the entity named 'subscriptiontrackingdeletedobject'...
Unhandled Exception: System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
at CrmSvcUtil.Generator.GenerateEntityCode(XElement entityElement, String outputNamespace, DirectoryInfo outputDirectory, Boolean useLogicalNames, StreamWriter outputWriter)
at CrmSvcUtil.Generator.Generate(IDictionary`2 arguments)
at CrmSvcUtil.Program.Main(String[] args)
Кто-нибудь знает, что это означает? Когда возникает это исключение, у меня все еще создается много объектов, но не все из них, и это делает мой файл cs неработающим