Skip to content

Commit 419c6b0

Browse files
CopilotCalinL
andcommitted
Fix build issues: Update to .NET 8.0 and fix Program.cs
Co-authored-by: CalinL <10718943+CalinL@users.noreply.github.com>
1 parent b00c208 commit 419c6b0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
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: 2 additions & 2 deletions
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>
@@ -13,7 +13,7 @@
1313
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.0.2" />
1414
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
1515
<PackageReference Include="System.Text.Json" Version="8.0.4" />
16-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
16+
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
1717
</ItemGroup>
1818

1919
</Project>

0 commit comments

Comments
 (0)