Skip to content
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

Problem Deploying CodeActivity when using a BaseClass #35

Open
PopsicleKnight opened this issue Jun 26, 2019 · 2 comments
Open

Problem Deploying CodeActivity when using a BaseClass #35

PopsicleKnight opened this issue Jun 26, 2019 · 2 comments

Comments

@PopsicleKnight
Copy link

PopsicleKnight commented Jun 26, 2019

Current Behaviour

When deploying a workflow using a CodeActivity base class you get the following error.
Plug-in assembly does not contain the required types or assembly content cannot be updated.
There are no issues when using XRMToolBox.

Expected Behaviour

If I uses a BaseClass I would like to be able to deploy using the provided WorkflowSyncDev.fsx script. Ideally without the baseclass showing up in CRM.

Possible Solution

Maybe an extra attribute on the baseclass that tells delegate this is a baseclass and should not be registered?

Reproduction Steps

  1. Create a class that extends from the WorkflowBase class added to this issue
  2. Run the WorkflowSyncDev.fsx

Environment

CRM 2011 on-premise latest rollup
.NET 4.5.2 for both the scripts + the code activities

Detailed Description

Can be found in the files attached.
This error also show up when there is no logic inside of the Workflow.

WorkflowBase.txt
ErrorMessage.txt

@henrikhannemose
Copy link
Collaborator

In practice we do not make that many custom workflow activities (we ❤ plugins), and the custom workflow activities we have simply inherit directly from CodeActivity.

In general, there are potential improvements of the tooling around custom workflow activities (#9 being a good example). It sounds like a good idea to have the tooling support the use of a base class, as you mention here - just be aware that this is not high on our list of priorities. Pull requests are very welcome! :)

@bo-stig-christensen
Copy link
Member

@MrRegalia : This is an old one.
Is this still an issue in latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants