Looking through the achievement list for Visual Studio 2010, it says that there is an achievement for having 3 startup projects.
How do you have multiple startup projects at once? Whenever I right click a project and select "Set as StartUp Project" it switches my current startup project to the new one. I wasn't aware multiple startup projects was even a possibility.
How to: Set Multiple Startup Projects:
Visual Studio allows you to specify how more than one project is run when you start the debugger.
To set multiple startup projects
In Solution Explorer, select the solution.
On the Project menu, click Properties. The Solution Property Pages Dialog Box opens.
Expand the Common Properties node, and click Startup Project.
Click Multiple Startup Projects and set the project actions. For more information, see Startup Project, Common Properties, Solution Property Pages Dialog Box.
Related
I have an netstandard2.1 Project in my Solution that always starts even when I start debugging another project. I can enable this in Properties in the Solution explorer.
Now I added a .NET 6.0 project to the solution and I want the same behaviour. But I don't know where to enable this feature.
How can I activate the feature?
If I understand correctly you are looking for VS feature multiple startup projects.
To select multiple projects as startup you can right-click on the solution item in the solution explorer, select "Properties" and then under "Common Properties" -> "Startup Project" click on "Multiple startup projects" and select needed ones:
I have 4 runnable projects(specifically web apps) in a single solution. The problem is when i try to run visual studio all the above mentioned apps getting run in background, but not in browser. However the setup is such that only one app is meant to run. Startup Project is set as Single startup project only
Right click on Solution.
Select Properties.
Select a single Startup Project
I fixed this by doing the below steps in Visual Studio
Select the project you want to stop running in background
press F4 (this will open properties of the project, but not the property page opens by right click > property)
Set Always Start When Debugging to false
But remember this is a user to user configuration. You cannot set it for all your team members
I am an electronic engineer with limited experience in Visual Studio. I have created a project with 2 solutions. The idea is that the 2nd project will allow to me do some tests more easily.
Now when I click on "build" or "start debuging" or "start without debugging", how do I choose which project should be is targetted by the tool?
Right click the project in the Solution Explorer pane, and select Set as Startup Project.
In Visual Studio 2010, I have a web application and a console application (actually a service using NServiceBus, but it runs locally as a console application) that I want to both startup when I hit Debug.
Right now I have the Web Application set as the startup application and it opens in a browser, then I right click on my Service and go to Debug -> Start new instance. This works fine, but I would rather not do it manually because I sometimes forget and need the Service running to handle messages from the website.
Thanks.
You can start multiple projects by choosing multiple projects to start and the order by right clicking on the solution node on the solution explorer and selecting Properties from the menu. Select the radio button for "Multiple startup projects" and choose the action as Start for the required projects.
I have a Visual Studio 2008 solution with several projects in it - some of which are web applications / sites.
Whenever I go "Debug > Start new instance" for a specific web application and VS launches the ASP.net Development Server (WebDev.WebServer.EXE) for that application, VS also launches 3 additional such processes - one for each of 3 other web applications I have in the solution.
How can I tell Visual Studio to only launch WebDev for the one project I'm debugging? I've looked both in the project configurations and in the solution configuration and could not find the relevant setting...
I think it runs one for each Port -- you can try turning setting them to have the same port - click on the project and look at the properties pane (you have to turn off the the automatic port generation and then set the port#)
I tried the above solution but it did not worked. My solution was a vs2005, what I found to solve the project was to make the property window of VS 2008 visible. Then click on the web projects and then set the "Always start when debugging" property to false and this should take care of it :(
In Visual Studio 2008, there is an entry on the Properties page for the project called "Always Start When Debugging".
Note you have to get to this by selecting the project and going to the Properties pane (or right-clicking Properties). This option is not present when you double-click the project and open it in the main editing pane.
VS by default sets this value to on for all your web projects. Turning it off will solve this problem.
[editorial]This is fairly annoying and I wish the default were false![/editorial]
Suggestion - don't use the internal WebDev, use IIS instead. Also reduces the clutter in the systray. ;)