Skip to content

Commit c4b34b8

Browse files
authored
order MapStaticAssets() after Use*
1 parent d910f16 commit c4b34b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "coreclr",
1616
"request": "launch",
1717
"preLaunchTask": "build",
18-
"program": "${workspaceFolder}/Todo.Web/Server/bin/Debug/net8.0/Todo.Web.Server.dll",
18+
"program": "${workspaceFolder}/Todo.Web/Server/bin/Debug/net9.0/Todo.Web.Server.dll",
1919
"args": [],
2020
"cwd": "${workspaceFolder}/Todo.Web/Server",
2121
"launchSettingsProfile": "https",
@@ -37,7 +37,7 @@
3737
"request": "launch",
3838
"preLaunchTask": "build",
3939
// If you have changed target frameworks, make sure to update the program path.
40-
"program": "${workspaceFolder}/TodoApi/bin/Debug/net8.0/TodoApi.dll",
40+
"program": "${workspaceFolder}/TodoApi/bin/Debug/net9.0/TodoApi.dll",
4141
"args": [],
4242
"cwd": "${workspaceFolder}/TodoApi",
4343
"stopAtEntry": false,

Todo.Web/Server/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
}
4141

4242
app.UseHttpsRedirection();
43-
app.MapStaticAssets();
4443
app.UseAntiforgery();
4544

45+
app.MapStaticAssets();
4646
app.MapRazorComponents<App>()
4747
.AddInteractiveWebAssemblyRenderMode();
4848

0 commit comments

Comments
 (0)