VSWebSite.EnsureServerRunning Method ()

 

Starts the ASP.NET Development Server, if necessary, and returns the URL for the Web site.

Namespace:   VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Syntax

string EnsureServerRunning()
String^ EnsureServerRunning()
abstract EnsureServerRunning : unit -> string
Function EnsureServerRunning As String

Return Value

Type: System.String

The URL for the Web site.

Remarks

In a development environment, a Web site project can run under the ASP.NET Development Server or under IIS (either locally or remotely). The EnsureServerRunning method returns the URL for the site. If the site is running from the ASP.NET Development Server, the server is started, if necessary, and the port number is returned as part of the URL in the format https://localhost:port/.

See Also

EnvDTE
VSWebSite Interface
VsWebSite Namespace
Referencing Automation Assemblies and the DTE2 Object

Return to top