Ranorex MSBuild Target Issue In Studio

Ranorex Spy, Recorder, and Studio.
bradj
Posts: 8
Joined: Wed Mar 13, 2013 6:56 pm

Ranorex MSBuild Target Issue In Studio

Post by bradj » Wed Mar 13, 2013 7:15 pm

I'm using Ranorex Studio 4.0.1 and am having an issue. I'm trying to modify my project files to support automated builds by my IT team. I need to be able to compile the source code on a machine that doesn't have Ranorex installed. I have everything working EXCEPT there is a problem with the Ranorex msbuild extension. I go in manually to the csproj file and modify the Import Condition to change the location of where it looks for the Ranorex.MSBuild.Targets file. It works perfectly and I am able to build using MSBuild.

However, when I reopen the project in Ranorex Studio it re-adds the Ranorex msbuild extension. This causes the project to fail to compile because of the circular reference to two Ranorex extensions.

What can be done to prevent Studio from re-adding the extension if it is already present (but having a different import condition)?

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

Re: Ranorex MSBuild Target Issue In Studio

Post by Support Team » Fri Mar 15, 2013 1:58 pm

Hello,

Please copy the installed targets to the other machines MSBuildExtensionsPath.
Please take a look at this article on MSDN.

Regards,
Markus (T)
.
Image