https://github.com/orosandrei/Rehosted-Workflow-Designer
我已经下载了MS WorkFlow Hosting Sample Project,并构建并运行它。
在示例代码中,注释了以下Activity加载代码,因此我未对其进行注释。但是在运行时,出现“加载活动失败”错误。
我试图在vs2019中安装nuget软件包,但是我无法从添加依赖项菜单的列表中找到相关的模块。
//AppDomain.CurrentDomain.Load("Microsoft.Workflow.Management");
//AppDomain.CurrentDomain.Load("Microsoft.Activities.Extensions");
//AppDomain.CurrentDomain.Load("Microsoft.Activities");
//AppDomain.CurrentDomain.Load("Microsoft.Activities.Hosting");
//AppDomain.CurrentDomain.Load("Microsoft.PowerShell.Utility.Activities");
//AppDomain.CurrentDomain.Load("Microsoft.PowerShell.Security.Activities");
//AppDomain.CurrentDomain.Load("Microsoft.PowerShell.Management.Activities");
//AppDomain.CurrentDomain.Load("Microsoft.PowerShell.Diagnostics.Activities");
//AppDomain.CurrentDomain.Load("Microsoft.Powershell.Core.Activities");
//AppDomain.CurrentDomain.Load("Microsoft.PowerShell.Activities");
我找到了AppDomain.CurrentDomain.Load方法加载程序集(文件系统中的dll),因此我尝试在Google上找到“ Microsoft.Workflow.Management.dll”,但找不到在哪里可以下载它。