Cant debug a coded UI application in VS2012 - debugging

I am newbie in Coded UI testing. I am using VS2012 to create Coded UI test application. I am able to Build and Run the application.
However when I try to debug the project, it throws an error
A project with an Output type of Class Library cannot be started directly.
In order to debug this project, add an executable project to the solution which references the library project. Set the executable project as the startup project
I tried to add a console application to the project and follow the above process, but doesnt help.. :(

In Visual Studio 2012 the big Debug button at the top of the window produces that message. To run or to debug a Coded UI test, right click in the source file of the test and select the Run or Debug entries.
In Visual Studio 2010 you could run or debug a Coded UI test using the buttons at the top of the window.

Related

Set default debug project in visual studio

I'm building a .NET app, and since last time I launched it something changed, and now it launches my Webservice instead of my main project when I debug (or even release).
I'd just like to replace the default debug target by my main project, how can I do it ?
Thanks
You should just be able to right click the project and hit "Set as default target"
More details here

Why there is no Debug configuration in Visual Studio 2010?

I downloaded the source code of a Visual Studio 2010 project, and since I have to analyze it for my University I'd like to be able to debug with breakpoints
Problem is, my Configuration popup only shows Release as option, there is no Debug option and so my breakpoints are always ignored
This is the first time I try to use VS, I always used Eclipse as IDE and I really don't know how to solve this - I tried to search the web but it didn't help
So, how can I run a VS project in debug with my breakpoints?
Thanks in advance
If it can help, here's the project - http://scene.sourceforge.net/download.html
EDIT
If it can helps, when I try to debug in existing configuration a pop up warns me that ( loosely translated from italian, not the exact sentence ) "Debug informations related to project not found. Binary not compilated with debug informations".
A VS project can hold many configurations, not just the default Win32 Debug and Release. It's also possible to delete existing configurations which is probably your case.
You can add the Debug configuration by right clicking on the solution within VS and select Build Configuration. Select new and ask to copy from Release.
Manually change the build options to a debug build which time consuming BTW. You'll need to go over each and every option.

Visual Studio stopped rebuilding dependent projects

Suddenly, Visual Studio 2010 has stopped behaving as it used to:
I have a solution containing several projects: a Class Library project, an Application project and a Test project.
The Application project is set as default startup project.
Now if I change anything in the Class Library and press F5, Visual Studio does not rebuild the Class Library anymore, so that it runs outdated code.
Same behaviour with the Test project.
What am I doing wrong? I am pretty sure this type of behaviour is new, but I do not know what I have changed.
In the solution explorer, right click on the solution name and go to "Configuration Manager.."
You will see the active solution configuration. Select which project to build or not by turning the checkbox on or off. Hope that solves your problem.

"Calls to the web service will fail unless the Silverlight project is hosted in and launched from the same web project"

I have Downloaded demo project from here
I tried to run Silverlight project SkiResult.ThinClient from the “Solution Explorer” I have configured the database nicely as SkiResult.FullClient a WPF Project works fine and display data.
But whenever I have tried to run Silverlight project in my Solution Explorer it shows me following error message.
I have googled so much I have also found one solution that set xyz.WEB project as a Start Up Project but as u can see from below screenshot of my Solution Explorer there is no xyz.WEB project in solution.
Thank you so much.....
Try setting the SkiResult.DataService project to be the startup project. This looks very much a web project created to host a Silverlight application because:
it has a Web.config file (so it is clearly a web project)
it has a Silverlight.js file (some utility JavaScript used with Silverlight),
it has some autogenerated test pages,
it has a ClientBin folder, which is typically where the compiled Silverlight application will be copied to.
When you create a Silverlight project, Visual Studio offers to create a web application project to host the Silverlight application for you. (You don't have to create a web application - VS can generate a test webpage during the build process and use that instead.) If your Silverlight project is called Xyz, then this web application will be called Xyz.Web. However, with the solution you're dealing with above, it seems this project has been renamed from the default.

VS 2005 Multiple Startup Project

I've have a project which has 11 mini-project...
I choose 2 of my project to start when project is browsing...
My first project is web other one is desttop project...
While i choose start without debugging is work fine: 2 of my projects start well...
But when i choose to debug mode my desktop project is not starting, thus i can't debug my project...Just my web project is starting and thats's all, it is not working as same as in the without debuging mode...
Summary: 2 project is not working properly as same as in the debug mode and in the without debug mode...
Anytime during debugging your can right click a project in the solution explorer and start it for debugging. That way you can start as many projects as you wish.

Resources