Rx.Validate does not contain a definition for [Ranorex 8.0]

Bug reports.
User avatar
freeddy1987
Posts: 4
Joined: Wed Jan 14, 2015 10:45 pm

Rx.Validate does not contain a definition for [Ranorex 8.0]

Post by freeddy1987 » Wed Dec 13, 2017 8:43 pm

hi,
after I update my solution I got a build error in visual studio. Everything where I have a validation have that error.

theire is something missing ?


error that showed in visual studio after a build:

Code: Select all

POS\CommonValidations\Tender\ValidateBalance.cs (137) : 'Ranorex.Validate' does not contain a definition for 'AttributeEqual'

POS\CommonValidations\FooterInformation\ValidateTaxes.cs (113) : ' 'Ranorex.Validate' does not contain a definition for 'AttributeRegex'

thanks

Ranorex was updated from 7.2.1 to 8.0.0
windows 7
____________
Freddy Gagnon
QA

ahoisl
Certified Professional
Certified Professional
Posts: 125
Joined: Fri Sep 07, 2007 8:16 am

Re: Rx.Validate does not contain a definition for [Ranorex 8.0]

Post by ahoisl » Wed Dec 13, 2017 10:12 pm

The Validate.AttributeEqual method is a new method that provides a more specific method name then the former Validate.Attribute method.
If the compiler cannot find it, you might be referencing the old 7.2 Ranorex assemblies. Make sure you have references to the correct Ranorex version added to your project - easiest by removing all references and then opening the project up in Ranorex Studio again.

Regards,
Alex
Ranorex Team

User avatar
freeddy1987
Posts: 4
Joined: Wed Jan 14, 2015 10:45 pm

Re: Rx.Validate does not contain a definition for [Ranorex 8.0]

Post by freeddy1987 » Thu Dec 14, 2017 10:20 pm

oh I see,
I forgot that part of update process. I conctact the tfs build manager and I need to keep the ranorex assemblies in my solutions (at least on the maine solutions), because that server don`t have Ranorex on it.

thank :)
____________
Freddy Gagnon
QA