Custom Library not working in Windows Target Framework

Make sure that the library is compatible with the version of UiPath that you are using.
You can check the compatibility of the library in the library’s NuGet package.

Check this thread for more discussion on this and a solution as well

Troubleshooting steps

Hope this helps

Cheers @raghavbidani