Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Purview.ZodSharp is a high-performance schema validation library for C#, ported
## Repository layout

```
assets/ Package assets (purview-logo.png) referenced by Directory.Build.props
assets/ Package assets (purview-logo-light.png) referenced by Directory.Build.props
src/
ZodSharp.slnx Solution entry point
Directory.Build.props / Directory.Build.targets Purview.BuildSdk imports
Expand Down Expand Up @@ -96,7 +96,7 @@ The generator and analyzer are built with `Purview.SourceGeneratorFramework`:

## Packing and package READMEs

Each package ships its own `README.md`, placed in the project's `Sdk/` folder (for example `src/src/ZodSharp/Sdk/README.md`). The SDK's `PurviewAutoSdkPack` automatically maps `Sdk/*.md` to the package root and `Sdk/buildTransitive/**` to `buildTransitive/`, and the repo-root `README.md` is skipped when a package already packs its own README. Packages also ship `purview-logo.png` (linked via `src/Directory.Build.props`) and the core package ships `buildTransitive/Purview.ZodSharp.props`.
Each package ships its own `README.md`, placed in the project's `Sdk/` folder (for example `src/src/ZodSharp/Sdk/README.md`). The SDK's `PurviewAutoSdkPack` automatically maps `Sdk/*.md` to the package root and `Sdk/buildTransitive/**` to `buildTransitive/`, and the repo-root `README.md` is skipped when a package already packs its own README. Packages also ship `purview-logo-light.png` (linked via `src/Directory.Build.props`) and the core package ships `buildTransitive/Purview.ZodSharp.props`.

Keep `purview-build.json`'s `PackValidation` requirements in sync with any packaging change.

Expand All @@ -114,4 +114,4 @@ Commits must follow [Conventional Commits](https://www.conventionalcommits.org/)
- Relevant tests pass.
- `just lint-check` (CSharpier) reports no formatting changes.
- Generated code is deterministic and reviewable; no scope leaks in `CodeWriter` output.
- Packed packages match `purview-build.json` `PackValidation` (including per-package `README.md` and `purview-logo.png`).
- Packed packages match `purview-build.json` `PackValidation` (including per-package `README.md` and `purview-logo-light.png`).
Binary file added assets/images/purview-banner-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/purview-banner-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions assets/images/purview-banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/purview-logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/purview-logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/purview-logo.png
Binary file not shown.
27 changes: 27 additions & 0 deletions assets/images/purview-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/wiki/Release-Flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Package identities are `Purview.ZodSharp.*` (core, SystemTextJson, NewtonsoftJso
Both consume `purview-build.json`:

- `Build` — solution (`src/ZodSharp.slnx`), test root (`src/tests`), patterns (`*Tests.csproj`), filter (`/*/*/*/*`).
- `PackValidation` — requires symbol packages/files and validates `RequiredContent` per package (per-TFM DLL + XML, analyzer assemblies and `buildTransitive/Purview.ZodSharp.props` for the core package, `README.md` and `purview-logo.png` for every package).
- `PackValidation` — requires symbol packages/files and validates `RequiredContent` per package (per-TFM DLL + XML, analyzer assemblies and `buildTransitive/Purview.ZodSharp.props` for the core package, `README.md` and `purview-logo-light.png` for every package).
- `Release.Mode` — `None` for PR/local runs.

## Pipeline commands
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zodsharp",
"version": "2.0.0-prerelease.8",
"version": "2.0.0-prerelease.9",
"private": true,
"license": "MIT",
"author": {
Expand Down
8 changes: 4 additions & 4 deletions purview-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"analyzers/dotnet/cs/Purview.ZodSharp.SourceGenerators.dll",
"buildTransitive/Purview.ZodSharp.props",
"README.md",
"purview-logo.png"
"purview-logo-light.png"
],
"purview.zodsharp.aspnetcore": [
"lib/net10.0/Purview.ZodSharp.AspNetCore.dll",
Expand All @@ -31,7 +31,7 @@
"lib/net8.0/Purview.ZodSharp.AspNetCore.dll",
"lib/net8.0/Purview.ZodSharp.AspNetCore.xml",
"README.md",
"purview-logo.png"
"purview-logo-light.png"
],
"purview.zodsharp.newtonsoftjson": [
"lib/net10.0/Purview.ZodSharp.NewtonsoftJson.dll",
Expand All @@ -41,7 +41,7 @@
"lib/net8.0/Purview.ZodSharp.NewtonsoftJson.dll",
"lib/net8.0/Purview.ZodSharp.NewtonsoftJson.xml",
"README.md",
"purview-logo.png"
"purview-logo-light.png"
],
"purview.zodsharp.systemtextjson": [
"lib/net10.0/Purview.ZodSharp.SystemTextJson.dll",
Expand All @@ -51,7 +51,7 @@
"lib/net8.0/Purview.ZodSharp.SystemTextJson.dll",
"lib/net8.0/Purview.ZodSharp.SystemTextJson.xml",
"README.md",
"purview-logo.png"
"purview-logo-light.png"
]
},
"ForbiddenContent": {}
Expand Down
7 changes: 5 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@
<RepositoryUrl>$(RepositoryUrl)</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageIcon>purview-logo.png</PackageIcon>
<PackageIcon>purview-logo-light.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
</PropertyGroup>

<ItemGroup Label="NuGet package assets" Condition="'$(IsPackable)' == 'true'">
<None Include="$(MSBuildThisFileDirectory)/../assets/images/purview-logo.png" Link="Sdk/purview-logo.png" />
<None
Include="$(MSBuildThisFileDirectory)/../assets/images/purview-logo-light.png"
Link="Sdk/purview-logo-light.png"
/>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/src/ZodSharp/Sdk/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Purview.ZodSharp
# ZodSharp

[![NuGet version](https://img.shields.io/nuget/v/Purview.ZodSharp.svg)](https://www.nuget.org/packages/Purview.ZodSharp)
[![Release](https://github.com/purview-dev/zodsharp/actions/workflows/release.yml/badge.svg)](https://github.com/purview-dev/zodsharp/actions/workflows/release.yml)
Expand Down
Loading