Added support to allow making Applications within site.#809
Added support to allow making Applications within site.#809GilliamOperator wants to merge 2 commits intowarrenbuckley:developfrom
Conversation
Added logic to process apps option.
Added apps as an optional option.
|
Thank you for your PR @CatStarwind |
|
Using Classic ASP as an example it's essentially to replicate the following: Where your project in vscode would look something like this: With the apps parameter you can mirror the pathing of the IIS website on your local machine. e.g. http://localhost/SubSite1 Previously this would not work as the ASP within SubSite1 would not execute since it wasn't an Application site. I also imagine this would allow #558 to be implemented in cases where your vscode project looks like this: Though I haven't tested the above. |
|
@CatStarwind I don't actively work on any classic ASP or even .NET Framework sites anymore to test this. |
|
Using the structure below Default.asp <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test Site</title>
</head>
<body>
<p>Welcome <%=Session("User")%> to <%=Application("Name")%></p>
</body>
</html>global.asa <script language="vbscript" runat="server">
Sub Application_OnStart
Application("Name") = "TestSite"
End Sub
Sub Session_OnStart
Session("User") = "Test User"
End Sub
</script>.vscode/iisexpress.json {
"port": 12637,
"path": "../",
"clr": "v2.0",
"protocol": "http",
"url": "/TestSite",
"apps": [
"/TestSite"
]
}If iisexpress.json is instead: {
"port": 12637,
"path": "../",
"clr": "v2.0",
"protocol": "http",
"url": "/TestSite"
} |






Added an apps option that allows setting a selection of folders to turn into an application when creating the web server.