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

Adding dependencies to custom tasks #15

Closed
Gunob17 opened this issue Mar 24, 2023 · 0 comments
Closed

Adding dependencies to custom tasks #15

Gunob17 opened this issue Mar 24, 2023 · 0 comments

Comments

@Gunob17
Copy link

Gunob17 commented Mar 24, 2023

Hello, first of all love the project.
I'm trying to make a custom task and are running into an issue. I want my task to use a NuGet dependency but can't seem to get Wexflow to see the library dll I get the following error when trying to run my flow

2023-03-24 10:01:40,396 ERROR [17] - An error occured while running the workflow. Error: {id: 34, name: test, enabled: True, launchType: Periodic}
System.IO.FileNotFoundException: Could not load file or assembly 'NModbus, Version=3.0.78.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'NModbus, Version=3.0.78.0, Culture=neutral, PublicKeyToken=null'
   at Wexflow.Tasks.FirstTestTask.ModbusHandler..ctor(String ip, Int32 port, Byte modbusAddress)
   at Wexflow.Tasks.FirstTestTask.FirstTestTask.Run()
   at Wexflow.Core.Workflow.RunSequentialTasks(IEnumerable`1 tasks, Boolean& success, Boolean& warning, Boolean& error)
   at Wexflow.Core.Workflow.StartSync(String startedBy, Guid instanceId, Boolean& resultWarning)

I have tried placing the nmodbus dll in the same folder as my custom task dll and in the wexflow.server folder as i can other dependencies are located here.

Do I really need to download the project ad add it before publishing it or is there another way to use NuGet packages in custom workflows?

@Gunob17 Gunob17 changed the title Adding dependencies to costom tasks Adding dependencies to custom tasks Mar 27, 2023
@aelassas aelassas closed this as completed Jun 5, 2023
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

2 participants