FAKE - F# Make


IISExpress

Contains tasks to host webprojects in IIS Express.

Nested types and modules

TypeDescription
IISExpressOptions

Options for using IISExpress

Functions and values

Function or valueDescription
createConfigFile (...)
Signature: (name:'?6116 * siteId:int * templateFileName:string * path:string * hostName:string * port:int) -> string
Type parameters: '?6116

Create a IISExpress config file from a given template

HostWebsite (...)
Signature: setParams:(IISExpressOptions -> IISExpressOptions) -> configFileName:string -> siteId:int -> Process

This task starts the given site in IISExpress with the given ConfigFile.

Parameters

  • setParams - Function used to overwrite the default parameters.
  • configFileName - The file name of the IISExpress configfile.
  • siteId - The id (in the config file) of the website to run.

Sample

 HostWebsite (fun p -> { p with ToolPath = "iisexpress.exe" }) "configfile.config" 1
IISExpressDefaults
Signature: IISExpressOptions

IISExpress default parameters - tries to locate the iisexpress.exe

OpenUrlInBrowser url
Signature: url:string -> unit

Opens the given url in the browser

OpenWebsiteInBrowser hostName port
Signature: hostName:string -> port:int -> unit

Opens the given website in the browser

Fork me on GitHub