9c0bf76a05
Playwright Tests / test (push) Has been cancelled
Added detailed instruction files for configuration, controller structure, C# standards, OCORE library usage, ImageSharp licensing, and testing. These documents define rules for settings, DI, file layout, package management, and test practices to ensure consistency and compliance during the .NET 10 migration.
1.4 KiB
1.4 KiB
applyTo
| applyTo |
|---|
| Fuchs/**,OCORE/**,OCORE_web/**,OCORE_web_pdf/** |
SixLabors ImageSharp Instructions
Licensing (v4.0.0+)
SixLabors.ImageSharpv4.0.0+ requires a license; builds fail validation without one.- Do not downgrade ImageSharp to avoid the license requirement.
- Each project that references ImageSharp needs its own discoverable
sixlabors.licfile in the project root. - Tracked license files exist for
OCORE,OCORE_web, andFuchs. UseOCORE_web/OCORE_web/sixlabors.licas the canonical Community-license template. - Do not create untracked local duplicates of
sixlabors.lic— an untracked copy blocksgit pullwhen upstream adds a tracked one.
License File Format
A single-line Community license payload:
Id=...;Kind=Community;ExpiryDateUtc=...;Key=...
v4.0.0 API / Namespace Changes
When updating or fixing ImageSharp-related code, account for these breaking moves:
| Removed / old | Use instead |
|---|---|
using SixLabors.ImageSharp.ColorSpaces; |
Removed — delete if unused |
using SixLabors.ImageSharp.Web.DependencyInjection; |
using SixLabors.ImageSharp.Web; |
AddImageSharp(...)/UseImageSharp()resolve fromSixLabors.ImageSharp.Web(plus.Commandsand.Processorsfor related types).- After any ImageSharp version change, rebuild and confirm middleware bootstrap in
OCORE_web/OCORE_web/web/OCORE_appbuilder.csstill compiles.