Import an Utility class in every Solution

Class library usage, coding and language questions.
generalecaster
Posts: 20
Joined: Thu May 09, 2013 10:44 am

Import an Utility class in every Solution

Post by generalecaster » Mon Aug 05, 2013 12:11 pm

Hi all,

I wonder if I can create a central repository with some Utiliti classes and import them in all of my test solutions.
I'm using Ranorex 4.0.4.

Thanx
Max

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Import an Utility class in every Solution

Post by Support Team » Tue Aug 06, 2013 1:57 pm

Hello Max,

It is possible to insert an existing repository to each project using the project view.
I am not sure what exactly do you want to do, but you can also create your classes within a DLL and add it to the references in your project.
Please let me know if I didn't understand you correctly.
Thank you!

Regards,
Bernhard
.
Image

generalecaster
Posts: 20
Joined: Thu May 09, 2013 10:44 am

Re: Import an Utility class in every Solution

Post by generalecaster » Thu Aug 08, 2013 2:57 pm

You did understand correctly, but in the while I've solved it! :D :D :D

Thanx
Max

generalecaster
Posts: 20
Joined: Thu May 09, 2013 10:44 am

Re: Import an Utility class in every Solution

Post by generalecaster » Fri Aug 09, 2013 9:42 am

Ok, to import a Code module is simple

right click on solution name, Add / Existing Item ... , select code module, when Ranorex ask if copy or link press on link, in this way code is always aligned in all my test.

Can someone tell me if I can link modules too?!?

thanx
Max

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Import an Utility class in every Solution

Post by Support Team » Fri Aug 09, 2013 1:51 pm

Hello,

You could of course link a Code module to your solution if you right-click on your project, choose 'Add Existing item', browse to your Code module and select 'Link' on the 'Add Existing Files' dialog.

Regards,
Markus (T)
.
Image