How to delete a module?

Ranorex Spy, Recorder, and Studio.
marttix
Posts: 3
Joined: Wed Aug 06, 2014 12:14 pm

How to delete a module?

Post by marttix » Wed Aug 06, 2014 12:35 pm

I sometimes create modules just to try out something.
I'd like to delete these modules afterwards. How can I do it? Ranorex gives an error if I simply delete the relevant files.

Another case when this could be useful is sorting out a compile error when Ranorex doesn't allow to edit the module which causes the error. This happened with Ranorex 5.1.1, when I renamed a module and it didn't compile. (It turned out that renaming created cs files, which had partial classes which conflicted with the original class. Error was "The type 'Myproj.sub.Foo' already contains a definition for 'repo' (CS0102) ")

- Martti

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

Re: How to delete a module?

Post by krstcs » Wed Aug 06, 2014 1:12 pm

In Ranorex Studio, Right-click on the module in the Projects pane and select Delete. This will delete the module from the project.
Shortcuts usually aren't...

marttix
Posts: 3
Joined: Wed Aug 06, 2014 12:14 pm

Re: How to delete a module?

Post by marttix » Wed Aug 06, 2014 1:31 pm

Well that was easy, thanks! I haven't noticed that since I've just used the Module Browser.

- Martti

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

Re: How to delete a module?

Post by krstcs » Wed Aug 06, 2014 1:43 pm

You're welcome! :D I don't know how many times I've overlooked simple things and asked similar questions around here.

I keep both the Projects tab and the Module Browser open, stacked (not tabbed) on the left side with Projects on top. I got used to having it there over years of software development with VS and Java. But that's just me. :D
Shortcuts usually aren't...