VS Plugin works really great but currently it is not possible to run the Codegenerator in .NET Core Libs. Current workaround: Create a .NET Lib and copy over the generated classes over a post-build action.
Stack trace:
at Yagasoft.Libraries.EnhancedOrgService.Helpers.ConnectionHelpers.EnsureTokenValid(IOrganizationService crmService, Int32 tokenExpiryCheckSecs)
at Yagasoft.Libraries.EnhancedOrgService.Pools.ServicePool1.GetService() at Yagasoft.Libraries.EnhancedOrgService.Services.Enhanced.EnhancedOrgServiceBase.GetService() at Yagasoft.Libraries.EnhancedOrgService.Services.Enhanced.EnhancedOrgServiceBase.TryRunOperation[TResult](Func2 action, Operation operation, ExecuteParams executeParams, Boolean isDelegated)
at Yagasoft.Libraries.EnhancedOrgService.Services.Enhanced.EnhancedOrgServiceBase.ExecuteAsOperation(OrganizationRequest request, ExecuteParams executeParams, Func3 undoFunction) at Yagasoft.Libraries.EnhancedOrgService.Services.Enhanced.EnhancedOrgServiceBase.Execute(OrganizationRequest request, ExecuteParams executeParams, Func3 undoFunction)
at Yagasoft.Libraries.EnhancedOrgService.Services.Enhanced.EnhancedOrgServiceBase.Execute(OrganizationRequest request)
at Yagasoft.CrmCodeGenerator.Helpers.MetadataHelpers.RefreshSettingsEntityMetadata(Settings settings, IConnectionManager connectionManager, MetadataCache metadataCache)
at CrmCodeGenerator.VSPackage.Dialogs.EntitySelection.RefreshEntityMetadata()
at CrmCodeGenerator.VSPackage.Dialogs.EntitySelection.<Window_Loaded>b__45_0()
I have installed previous version of this extension into vs 2015, and deployed into my crm projects.
But after update to latest version, every time I open vs 2015 it always crashed.
I try to download the code from this repository, and can't open it properly. It seems not compatible with VS 2015 because of C# 7.1 not installed.
Is it possible because of this compatibility issue, vs 2015 crash every time I open it?
I am trying to connect to the CRM as shown on the webpage.
The problem is the ClientSecret ends with the equation character('='). Therefore the tool is replacing my equation character to this string: " = ".
So when the tool tries to establish a connection the response is "invalid client secret provided".
Can you help me with this issue or am I missing something out?
Thanks in advance
In the Dialog of the VS plugin there is an option called "Use CRM labels for variable names". Looks like this setting is not saved after closing the dialog and saving the options. If you re-generate the code and open the dialog again you always have to uncheck that option first again before generation to get the same code out.