Files
pruefwerk/fixtures/dotnet/README.md
T
sharangandClaude Opus 5.5 8926255d6f
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Docs (push) Successful in 1m10s
CI / Deploy Agent (push) Successful in 4m42s
feat(dotnet): .NET detection, NuGet SBOM, C# rules and config checks (#447)
Minimal .NET/C# support for epic #445 (N1-N5): detection of solutions/projects and target frameworks, NuGet SBOM without build or restore (pkg:nuget purls for OSV, unresolved-dependency warning, end-of-support frameworks), own C# semgrep rule pack, .NET configuration and key-file checks, .NET build output and restored packages not counted as own code. Fixture fixtures/dotnet/framework48, docs .NET-Projekte (DE/EN).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-05 14:38:13 +00:00

24 lines
1.6 KiB
Markdown

# .NET fixtures (#445)
Source trees standing for a .NET codebase, read by the unit test in
`compliance-agent/src/pipeline/dotnet/fixture_tests.rs` (no build, no network).
## `framework48`
A .NET Framework 4.8 solution in the old project style, the way an industrial
Windows codebase often looks: a WPF client, an ASP.NET/WCF service and an old
tool, NuGet packages in `packages.config` and committed under `packages/`.
| What | Expected |
|---|---|
| `Plant.sln`, three legacy `.csproj` (`v4.8`, `v4.8`, `v4.0`) | one solution, three projects, runtime `dotnet-framework` |
| `Plant.Hmi/packages.config` (EntityFramework 6.2.0, log4net 2.0.8, Newtonsoft.Json 12.0.1) | three NuGet components; Newtonsoft.Json 12.0.1 has GHSA-5crp-9r3c-p9vr |
| `packages/Newtonsoft.Json.12.0.1/` | the same component, not repeated; `packages/` is not own code |
| `Plant.Web/Plant.Web.csproj` with `<PackageReference>` BouncyCastle 1.8.5, no lockfile | the component, and a `sbom_dependencies` skip: transitive packages unknown |
| `Plant.Web/Web.config` | clear-text password, debug compilation, WCF `basicHttpBinding` with `security mode="None"` |
| `Plant.Hmi/App.config` | nothing: integrated security, and a masked password |
| `Plant.Hmi/bin/Debug/Plant.Hmi.exe.config` | nothing: build output |
| `Plant.Legacy` targeting `v4.0` | .NET Framework 4.0 out of support since 2016-01-12 |
| `Signing/Plant.snk` (a 596-byte key pair; dummy bytes) | signing key committed to the repository |
| `Plant.Web/OrderService.svc.cs` | C# rules: SQL by concatenation, BinaryFormatter, MD5, certificate validation off |