locked
running a console application in an MVC solution RRS feed

  • Question

  • User1571524970 posted

    Hi guys,

    I have a solution which contains an MVC project, a MsTest project and a Console application. How do I run the console application without the launching IIS and the MVC web app? When I build and run the MVC web app starts when I want to  run the Console app on its own

    ss

    Thursday, February 27, 2020 6:34 PM

Answers

  • User-17257777 posted

    Hi darego,

    You can follow below steps to choose the specify project to run

    1. Right-click the Solution
    2. Select the Set Startup Projects option
    3. Choose Single startup project and select the project you want to run

    Best Regards,

    Jiadong Meng

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, February 28, 2020 6:38 AM

All replies

  • User753101303 posted

    Hi,

    See http://www.blackwasp.co.uk/VSStartupProjects.aspx that explains both how to change the startup project or to define multiple startup projects.

    Edit: the console app is sending http requests to the web application? In this case I believe you should set both as startup projects but you can tell in the project properties for the web app, that it should wait for requests coming from an external app rather than to launch a browser window.

    Thursday, February 27, 2020 7:11 PM
  • User-17257777 posted

    Hi darego,

    You can follow below steps to choose the specify project to run

    1. Right-click the Solution
    2. Select the Set Startup Projects option
    3. Choose Single startup project and select the project you want to run

    Best Regards,

    Jiadong Meng

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, February 28, 2020 6:38 AM
  • User1571524970 posted

    Thanks guys

    Friday, February 28, 2020 9:12 AM