I created a brand new Coded UI Project and started to record the project. Once, I was done with recording, I click Generate code to create the code for the script.
When I click the 'Start' button after clicking 'Build' > 'Build Solution', I run into the following error: 'A Project with and Output Type of Class Library cannot be started directly. In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project'
So, I went ahead right clicked the project and clicked 'Set as Startup Project' and saved and tried to run again. However, still the issue was not resolved.
I also right click the project and went to its Properties > Application > change output type to Windows Application'. Then, I get the error message 'Program does not contain a static Main method suitable for an entry point'
When I google the solution for this, the solution is to change it back to output type Class Library'
So, basically it keeps going back and forth and one solution actually leads to error for the other.
Is there a way I can Play the recorded piece by resolving these errors?