Program.cs template
Program.cs template
Is there a file that Ranorex uses to generate the program.cs that I can edit to get a different Program.cs file? I would like to add some fields to the default. Thanks.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Program.cs template
Yes, there are such templates for the Program.cs file generated when you create a new project in Ranorex Studio. For every project type there is a *.xpt template file in the "RanorexStudio" directory of your Ranorex installation that contains all the information to create a new project, including the template for the Program.cs file.
The project template for the "Ranorex C# Test Automation" project is in the following location (for Ranorex V2.3):
%ProgramFiles%\Ranorex 2.3\RanorexStudio\AddIns\AddIns\DisplayBindings\RxRecorder\Templates\Projects\CSharp\RanorexTestAutomation.xpt
To customize the Program.cs file for newly created projects of that type, just open and edit the file using a text editor. The template file contains XML data and it should be easy to find the section where the Program.cs code is located
Regards,
Alex
Ranorex Team
The project template for the "Ranorex C# Test Automation" project is in the following location (for Ranorex V2.3):
%ProgramFiles%\Ranorex 2.3\RanorexStudio\AddIns\AddIns\DisplayBindings\RxRecorder\Templates\Projects\CSharp\RanorexTestAutomation.xpt
To customize the Program.cs file for newly created projects of that type, just open and edit the file using a text editor. The template file contains XML data and it should be easy to find the section where the Program.cs code is located

Regards,
Alex
Ranorex Team