Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run ASP.NET 5 without opening a page in the browser

Tags:

asp.net-core

Prior to ASP.NET 5, there used to be an option in Visual Studio 2015 in the project properties | Web page for the start action not to open a page when running the web app. This allowed you to have an existing page open in the browser and just refresh it.

This option has now disappeared, resulting in a new browser page being opened every time I hit run, even though I have a page open at the correct URL etc. ready to be refreshed.

How can I get the previous behaviour?

like image 301
Mike Scott Avatar asked Dec 14 '15 18:12

Mike Scott


People also ask

How do I stop Visual Studio from opening my browser?

Go to Project Properties > Debug > Uncheck "Launch Browser" > Save. Save this answer.

How do I open an ASP.NET project without Visual Studio?

To run the application without opening Visual Studio, You need to install IIS (as rtpHarry has suggested). Then You need to have your application in a virtual directory. To create virtual directory perform following steps: Type inetmgr at command prompt -> Click OK.

Can we run .NET application without Visual Studio?

All replies. You can host your application on iis and run without visual studio. Create a windows batch file to start the ASP.NET Web Development Server and point it to your application's root directory. To open aspx page you need a ASP.NET server.

Does ASP.NET run in browser?

Alternatively, you can design your ASP.NET Web pages to run on a specific browser such as Microsoft Internet Explorer 6 and take advantage of browser-specific features. Compatible with any language supported by the . NET common language runtime, including Microsoft Visual Basic and Microsoft Visual C#.


1 Answers

In the Debug page of the project properties there's a checkbox "Launch URL" or “Launch browser” in later versions of VS. Unchecking it prevents VS from launching a page in the browser.

like image 69
Mike Scott Avatar answered Sep 20 '22 17:09

Mike Scott