Skip to content

Commit 0db29cc

Browse files
authored
Fix F# starter web template. (#47697)
* Fix F# starter web template. * Other fixes for similar issue.
1 parent b0917f4 commit 0db29cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/Program.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ open System.Threading.Tasks
1010
open Microsoft.AspNetCore
1111
open Microsoft.AspNetCore.Builder
1212
open Microsoft.AspNetCore.Hosting
13-
#if !NoHttps
13+
#if (!NoHttps)
1414
open Microsoft.AspNetCore.HttpsPolicy
1515
#endif
1616
open Microsoft.Extensions.Configuration
@@ -36,7 +36,7 @@ module Program =
3636

3737
if not (builder.Environment.IsDevelopment()) then
3838
app.UseExceptionHandler("/Home/Error")
39-
#if HasHttpsProfile
39+
#if (HasHttpsProfile)
4040
app.UseHsts() |> ignore // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
4141

4242
app.UseHttpsRedirection()

src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/Program.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ open System.Threading.Tasks
88
open Microsoft.AspNetCore
99
open Microsoft.AspNetCore.Builder
1010
open Microsoft.AspNetCore.Hosting
11-
#if !NoHttps
11+
#if (!NoHttps)
1212
open Microsoft.AspNetCore.HttpsPolicy
1313
#endif
1414
open Microsoft.Extensions.Configuration
@@ -28,7 +28,7 @@ module Program =
2828

2929
let app = builder.Build()
3030

31-
#if HasHttpsProfile
31+
#if (HasHttpsProfile)
3232
app.UseHttpsRedirection()
3333
#endif
3434

0 commit comments

Comments
 (0)