Modules missing from Project view

Ask general questions here.
Eamonn
Posts: 59
Joined: Wed Jul 16, 2014 9:30 am
Location: Dundalk, Ireland.

Modules missing from Project view

Post by Eamonn » Thu Sep 15, 2016 5:28 pm

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.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Modules missing from Project view

Post by krstcs » Thu Sep 15, 2016 7:22 pm

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.
Shortcuts usually aren't...

Eamonn
Posts: 59
Joined: Wed Jul 16, 2014 9:30 am
Location: Dundalk, Ireland.

Re: Modules missing from Project view

Post by Eamonn » Fri Sep 16, 2016 9:07 am

Hi krstcs, Thank you very much for clarifying the correct action and steps I should be taking. :D