Solution with 2 projects using the same (linked) repository

Ask general questions here.
bru
Posts: 18
Joined: Thu Oct 31, 2013 11:22 am
Location: Linz / Austria
Contact:

Solution with 2 projects using the same (linked) repository

Post by bru » Mon Jan 20, 2014 4:36 pm

I have the following scenario within my solutions:
  • I use one project as kind of "container" for general recordings (install application, start/stop application, close all open windows, ...).
  • The second project will contain the "real" testcases and the TestRun.
Both projects use the same (linked) repository, so that both projects access the same repository data.

When building the solution, at first I get 250+ warnings saying something linke:

Code: Select all

The type 'xyz.MyRepository' in 'd:\path\project2\MyRepository.cs' conflicts with the imported type 'xyz.MyRepository' in 'd:path\project1\bin\Release\MyRepository.dll'. Using the type defined in 'd:\path\project2\MyRepository.cs'. (CS0436) - ...
It seems as if the code classes will be generated twice out of the rxrep-file, which leads to these warnings.
The strange thing is that if I start the build a second time (without any changes), these warnings disappear.

It is just a cosmetic issue (only warnings, no errors), but is there a better way to implement a scenario like this?

Thanks,
Juergen

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

Re: Solution with 2 projects using the same (linked) repository

Post by Support Team » Thu Jan 23, 2014 3:49 pm

Hello Juergen,

Thank you for reporting the issue.
It seems to be an issue in the code generation in Ranorex and I have already added an entry in our bug tracking system. Our development team will analyze the issue, but as you said this is a cosmetic issue and that's why I cannot give you a guarantee if or when the issue will be fixed.
Thank you!

Regards,
Bernhard
.
Image

karlsruher
Posts: 4
Joined: Thu Mar 06, 2014 10:23 am

Re: Solution with 2 projects using the same (linked) repository

Post by karlsruher » Wed Oct 08, 2014 8:08 am

Hi,
same problem, because we using a reposirory in a DLL.
Now i have over 250 warnings in my project. Will be anything happens next time with this cosmetic issue ?

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

Re: Solution with 2 projects using the same (linked) repository

Post by Support Team » Fri Oct 10, 2014 2:31 pm

Hi karlsruher,

May I ask which version of Ranorex are you useing?
Please update Ranorex to the most current version and check if the issue is still there.

Regards,
Bernhard
.
Image

geyzer
Posts: 3
Joined: Sun Nov 09, 2014 12:47 am

Re: Solution with 2 projects using the same (linked) repository

Post by geyzer » Sun Nov 09, 2014 1:07 am

I have the same problem with Version 5.2.0.20272

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

Re: Solution with 2 projects using the same (linked) repository

Post by Support Team » Tue Nov 11, 2014 3:19 pm

Hi geyzer,

The warning just means that you have to be careful because there are cross-references in your project. This should not be a probolem for your test run. As I wrote in my previous post it is on our TODO list, but not on the first position :)

Regards,
Bernhard
.
Image