Ranorex still uses old version after NuGet self update

Ask general questions here.
hellboy81
Posts: 22
Joined: Sun Dec 10, 2017 8:52 pm

Ranorex still uses old version after NuGet self update

Post by hellboy81 » Thu Mar 15, 2018 5:30 pm

Hi

I have self updated NuGet from Command Line with admin rights

RS is restarted but NuGet.Core.dll, PackageManagement.dll and other libraries in PackageManagement dir still out of date (as excepceted :D )

Questions:

[*] Is there possible to install into RS project using new updated NuGet version?
[*] Is there possible to update another files?

Is this feature requests are still open:

Support new NuGet format

It`s not possible to update NuGet client version

?

User avatar
RobinHood42
Posts: 239
Joined: Fri Jan 09, 2015 3:24 pm

Re: Ranorex still uses old version after NuGet self update

Post by RobinHood42 » Fri Mar 16, 2018 11:29 am

Hi,

As stated within the feature requests, it's not possible to update the NuGet package manager within Ranorex Studio. Simply up-vote the feature request, to increase its priority. Once the "idea" gets a reasonable amount of votes, Ranorex folks consider to implement them.

Cheers,
Robin

hellboy81
Posts: 22
Joined: Sun Dec 10, 2017 8:52 pm

Re: Ranorex still uses old version after NuGet self update

Post by hellboy81 » Mon Mar 19, 2018 1:50 pm

OK, The last NuGet version supported by RS is 2.8

With last NuGet.exe I cannot restore packages directly:

Code: Select all

NuGet.exe restore .rxsln
I got

The file type was not recognized

Is it really Ranorex compatibility problem or NuGet bug?

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Ranorex still uses old version after NuGet self update

Post by krstcs » Mon Mar 19, 2018 2:47 pm

NuGet does not recognize *.rxsln files. That is a Ranorex specific file. You need to use the *.sln file of the same base name.

Your solution folder should have these files:
MySolution.sln <- Use this one
MySolution_VS2010.sln
MySolution.rxsln

Any file with RX in the extension is Ranorex specific and will not be recognized by tools other than Ranorex, in most situations.

Any version of NuGet supported by Ranorex Studio will work with *.sln files, and that is actually what Ranorex Studio passes to NuGet when you update packages.

tldr; use the *.sln file instead.
Shortcuts usually aren't...

hellboy81
Posts: 22
Joined: Sun Dec 10, 2017 8:52 pm

Re: Ranorex still uses old version after NuGet self update

Post by hellboy81 » Tue Jul 10, 2018 7:49 am

As I mentioned this bug has been fixed in last RS version 8.2