Page 1 of 1

How to delete a module?

Posted: Wed Aug 06, 2014 12:35 pm
by marttix
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

Re: How to delete a module?

Posted: Wed Aug 06, 2014 1:12 pm
by krstcs
In Ranorex Studio, Right-click on the module in the Projects pane and select Delete. This will delete the module from the project.

Re: How to delete a module?

Posted: Wed Aug 06, 2014 1:31 pm
by marttix
Well that was easy, thanks! I haven't noticed that since I've just used the Module Browser.

- Martti

Re: How to delete a module?

Posted: Wed Aug 06, 2014 1:43 pm
by krstcs
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