I’m trying to write a custom activity using Visual Studio C# and need to use sapfewse.dll there. While the package builds without any problems, UiPath returns an error, when I try to add a variable to any of the Activities. The library does contain “GuiSession” however. What could be the issue causing this error?
Hello @LevKushnir
Thank you for your answer!
I went through both threads, but unfortunately couldn’t find the information that might help with our case. I have the assumption, that the issue might be with the library we are using, sapfewse.dll, being written with an older dotnet version, which is only supported in UiPath legacy projects.
We finally could reach the solution. It was important to set properties “Copy Local” and “Embed Interop Types” of each relevant import to yes and no respectively. It was also necessary to add the following lines for each relevant import inside the <Target Name="AddDlls"/> in *.Packaging Project: