Skip to content

Commit 55dc690

Browse files
CopilotCalinL
andcommitted
Initial analysis: Update .NET framework to 8.0 and fix Program.cs for compatibility
Co-authored-by: CalinL <10718943+CalinL@users.noreply.github.com>
1 parent 7280482 commit 55dc690

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/webapp01/Program.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919

2020
app.UseAuthorization();
2121

22-
app.MapStaticAssets();
23-
app.MapRazorPages()
24-
.WithStaticAssets();
22+
app.UseStaticFiles();
23+
app.MapRazorPages();
2524

2625
app.Run();

src/webapp01/webapp01.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<UserSecretsId>7f0355f0-e3cb-4a1e-bf2d-0431db9b93f8</UserSecretsId>

0 commit comments

Comments
 (0)