New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to register multiple plugin steps #282
Comments
This is certainly a supported scenario - what version are you using? |
It’s the latest version. I did a rebuild and then seem to register the two steps. Thanks. FYI- I purchased your video on Dynamics 365 from PACKT. It’s great. Thank you again for sharing with us. |
My other question I have published a merged plugin and when I try to unpack the meta data for steps nothing gets processed. |
When you say ‘Merged’ do you mean ILMerge? If so - http://develop1.net/public/post/2018/10/21/ILMergeNotSupported |
Are you all set now? |
Sorry for a late response no this has never worked with a merged plugin.
|
I checked the plugin through plugin registration tool it looks like it registered my steps on the merged plugin but the spkl task runner is trying to register the un merged plugin. How do tell spkl to exclude some plugin assemblies. |
I also noticed it cannot instrument the plugin code when its a merged plugin. Nice to have but I can do without it. |
I would recomend putting your Merged assembly in a seperate directory and setting SPKL up so it only processes that directory and not the one containing the Unmerged code. If your Unmerged assembly has the tags in place for registering steps, SPKL is going to try to process it. There is no reasonable way for it to know to bypass it as it was setup to process based on a folder. Also, I recommend reviewing the article Scott linked to above about ILMerge not being supported. If this is just to include internal code, look to Shared Projects as an alternative to pull in the source without using ILMerge. |
I am also merging some third party assembly i.e. Authorize.NET for collecting payments using the CRM Forms. I have been using ILMerge since 2011 days and never ran into any issues yet. |
I have a base class where different overrides for different plugins steps. How do I register different steps using the same plugin class using spkl.
I am providing what I have. spkl registers only the first step.
` [CrmPluginRegistration(MessageNameEnum.Create,"account", StageEnum.PreValidation, ExecutionModeEnum.Synchronous,"","Pre Create Account",1000,
IsolationModeEnum.Sandbox)]
[CrmPluginRegistration(MessageNameEnum.Create, "account", StageEnum.PostOperation, ExecutionModeEnum.Synchronous, "", "Post Create Account", 1001,
IsolationModeEnum.Sandbox)]
The text was updated successfully, but these errors were encountered: