Page 1 of 1

Modules missing from Project view

Posted: Thu Sep 15, 2016 5:28 pm
by Eamonn
I am working on a solution which is using version control. I completed a Checkout of the solution. I then added a recorded module to a folder used to store recorded modules. After having the changes merged into the project master in remote GIT repository I then 'checkout' the updated solution. When the solition is open in Ranorex again it reports a warning that the added module is in the test suite but has been deleted from the project. When I review the Project view tree the added module is not visible (included). However, the module is visible from the Windows Explorer project folder tree. I can move the module files over to the Ranorex Project view tree and this clears the warning.
This is continually occurring, could you advise why this might be happening. When I commit&push my changes I do not include the <project>.csproj file.

Re: Modules missing from Project view

Posted: Thu Sep 15, 2016 7:22 pm
by krstcs
You MUST include the csproj file in your Git repository. This file contains the definition of the project, without which neither Ranorex nor MSBuild will know how to build the project and which files are included.

The reason you get the errors is because when you change the project by adding the new modules, Ranorex updates the csproj file with those new files. But if you don't merge those changes into your branch, when you checkout the branch again, you will get the old version of the file that is stored in the repo, which won't have the new files. So your suite file has references to files that are not in the project, hence the error.

Re: Modules missing from Project view

Posted: Fri Sep 16, 2016 9:07 am
by Eamonn
Hi krstcs, Thank you very much for clarifying the correct action and steps I should be taking. :D