Skip to content

Commit

Permalink
Migrate from ASP.NET Core in .NET 8 to ASP.NET Core in .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
akunzai committed Nov 14, 2024
1 parent 3fcf28d commit 731375d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions samples/AspNetCoreIdentitySample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@
}

app.UseHttpsRedirection();
app.UseStaticFiles();
app.MapStaticAssets();

app.UseRouting();

app.UseAuthentication();
app.UseAuthorization();

app.MapRazorPages();
app.MapRazorPages().WithStaticAssets();

app.Run();
4 changes: 2 additions & 2 deletions samples/AspNetCoreReactSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@

// Configure the HTTP request pipeline.
app.UseHttpsRedirection();
app.UseStaticFiles();
app.MapStaticAssets();

app.UseRouting();

app.UseAuthentication();
app.UseAuthorization();

app.MapControllers();
app.MapControllers().WithStaticAssets();
app.MapFallbackToFile("index.html").AllowAnonymous();

app.Run();
4 changes: 2 additions & 2 deletions samples/AspNetCoreSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
}

app.UseHttpsRedirection();
app.UseStaticFiles();
app.MapStaticAssets();

app.UseRouting();

Expand All @@ -185,6 +185,6 @@
app.UseAuthentication();
app.UseAuthorization();

app.MapRazorPages();
app.MapRazorPages().WithStaticAssets();

app.Run();
6 changes: 3 additions & 3 deletions samples/BlazorSample/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<base href="/"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer"/>
<link rel="stylesheet" href="app.css"/>
<link rel="stylesheet" href="BlazorSample.styles.css"/>
<link rel="stylesheet" href="@Assets["app.css"]"/>
<link rel="stylesheet" href="@Assets["BlazorSample.styles.css"]"/>
<link rel="icon" type="image/png" href="favicon.png"/>
<HeadOutlet/>
</head>

<body>
<Routers/>
<Routers />
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.min.js" integrity="sha512-ykZ1QQr0Jy/4ZkvKuqWn4iF3lqPZyij9iRv6sGqLRdTPkY69YX6+7wvVGmsdBbiIfN/8OdsI7HABjvEok6ZopQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="_framework/blazor.web.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion samples/BlazorSample/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

<div id="blazor-error-ui">
An unhandled error has occurred.
<a href="" class="reload">Reload</a>
<a href="." class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>
Empty file.
4 changes: 2 additions & 2 deletions samples/BlazorSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
}

app.UseHttpsRedirection();
app.UseStaticFiles();
app.MapStaticAssets();

app.UseRouting();

Expand All @@ -94,7 +94,7 @@

app.UseAntiforgery();

app.MapRazorPages();
app.MapRazorPages().WithStaticAssets();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();

Expand Down

0 comments on commit 731375d

Please sign in to comment.