Skip to content

Commit e07b582

Browse files
authored
Merge pull request #100 from tobyash86/feature/net8
Update WebGoat.NET to .NET 8
2 parents 657ebea + 0fc8fd7 commit e07b582

5 files changed

Lines changed: 28 additions & 16 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build .NET 7
1+
name: build .NET 8
22

33
on:
44
push:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# https://hub.docker.com/_/microsoft-dotnet
2-
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
2+
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
33
WORKDIR ./sources
44

55
# copy everything else and build app
@@ -8,7 +8,7 @@ WORKDIR ./sources/WebGoat.NET
88
RUN dotnet publish -c release -o /app
99

1010
# final stage/image
11-
FROM mcr.microsoft.com/dotnet/aspnet:7.0
11+
FROM mcr.microsoft.com/dotnet/aspnet:8.0
1212
WORKDIR /app
1313
COPY --from=build /app ./
1414

WebGoat.NET/WebGoat.NET.csproj

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<UserSecretsId>669676e4-410e-47bc-a260-8c851a25b590</UserSecretsId>
7+
<GenerateProgramFile>false</GenerateProgramFile>
78
</PropertyGroup>
89

910
<ItemGroup>
@@ -14,18 +15,19 @@
1415

1516
<ItemGroup>
1617
<PackageReference Include="Json.Net" Version="1.0.33" />
17-
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.8" />
18-
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="6.0.8" />
19-
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="6.0.8" />
20-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.8" />
21-
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.8" />
22-
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="6.0.8" />
23-
<PackageReference Include="Microsoft.EntityFrameworkCore.SQLite" Version="6.0.8" />
24-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.8">
18+
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="7.0.12" />
19+
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="7.0.12" />
20+
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="7.0.12" />
21+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="7.0.12" />
22+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
23+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.10" />
24+
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="7.0.12" />
25+
<PackageReference Include="Microsoft.EntityFrameworkCore.SQLite" Version="7.0.12" />
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.12">
2527
<PrivateAssets>all</PrivateAssets>
2628
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2729
</PackageReference>
28-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="6.0.0" />
30+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
2931
<PackageReference Include="System.Data.SqlClient" Version="4.8.3" />
3032
</ItemGroup>
3133

changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## Version 0.3
4+
### Added
5+
- Added .NET 8 SDK as a minimum requirement to run WebGoat locally.
6+
- Added Docker build.
7+
8+
## Version 0.2
9+
### Added
10+
- Added .NET 7 SDK as a minimum requirement to run WebGoat locally.
11+
- Adjusted project naming as it no longer targets .NET Core.
12+
313
## Version 0.1
414
### Added
515
- Added scripts to facilitate launching the WebGoat application.

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# WebGoat.NET version 0.2
1+
# WebGoat.NET version 0.3
22

33
## Build status
44

5-
![build .NET 7](https://github.com/tobyash86/WebGoat.NET/workflows/build%20.NET%207/badge.svg)
5+
![build .NET 8](https://github.com/tobyash86/WebGoat.NET/workflows/build%20.NET%208/badge.svg)
66

77
## The next generation of the WebGoat example project to demonstrate OWASP TOP 10 vulnerabilities
88

@@ -26,7 +26,7 @@ RUNNING!
2626
`--disable-xss-auditor`.
2727

2828
## Requirements
29-
- .NET 7 SDK
29+
- .NET 8 SDK
3030

3131
## How to build and run
3232

0 commit comments

Comments
 (0)