Nuget packages are not working as expected

Ranorex Studio, Spy, Recorder, and Driver.
sruthi.Medishetty
Posts: 1
Joined: Thu Aug 11, 2022 5:34 pm

Nuget packages are not working as expected

Post by sruthi.Medishetty » Thu Aug 11, 2022 5:43 pm

Hello,

I have encountered an issue added all references related to system.io(compressed, ZipFile and all) , while creating an usercode unable to use those packages , it is erroring as ZipFile is not seen in current context.

Please help me with this issue

Thank you
Sruthi

markos
Posts: 17
Joined: Tue Mar 28, 2023 12:20 am
Contact:

Re: Nuget packages are not working as expected

Post by markos » Thu Sep 21, 2023 6:14 pm

I wonder if this is related to my problem also.

All I want to do is import Newtonsoft.Json in one of my .cs files.

Code: Select all

using Newtonsoft.Json;
Error:
Error loading code-completion information for Newtonsoft.Json from Newtonsoft.Json:
Could not find assembly file.
Screenshot 2023-09-21 101529.png
Screenshot 2023-09-21 100644.png
Image
You do not have the required permissions to view the files attached to this post.

markos
Posts: 17
Joined: Tue Mar 28, 2023 12:20 am
Contact:

Re: Nuget packages are not working as expected

Post by markos » Fri Sep 22, 2023 2:37 pm

I found out my system had 2 problems. One was that I had installed some libs via NuGet from the command-line, but that used NuGet version 3. But Ranorex requires version 2. My other problem was a missing library not available via NuGet, that I had to download from a vendor website.