Error invoking activity from custom library

Hi,
I have problem with invoking my custom activity from my API JIRA library in process.
Activity with C# code run and works fine in library workflow.

Code in library:

When I add library to new Robotic Process and I do test run of the activity I have this message:

Method 'UiPath.CodeRunner.UiPathCodeRunner_dc3658ebc1034030a8281c0362fd914c.Run' not found

When I had this code in library:

and when I do test run of the activity I have this message:

A value of type 'RestSharp.RestResponse' cannot be set to the location with name 'response' because it is a location of type 'RestSharp.IRestResponse'.

Library and processs project have the same RestSharp package v. 106.11.7:
image

In both scenarios, the test flow in the process has a RestSharp namespace added to the “Imports” tab.

What’s wrong with this activity or project? Where to look for the cause?