Skip to content

docs: enhance README with detailed package usage and configuration examples#11

Merged
j-d-ha merged 4 commits into
mainfrom
docs/update-for-new-package
Dec 21, 2025
Merged

docs: enhance README with detailed package usage and configuration examples#11
j-d-ha merged 4 commits into
mainfrom
docs/update-for-new-package

Conversation

@j-d-ha

@j-d-ha j-d-ha commented Dec 21, 2025

Copy link
Copy Markdown
Collaborator

🚀 Pull Request

📋 Summary

This PR significantly enhances the README documentation to provide comprehensive guidance on using both package options (runtime and source generator), including detailed installation instructions, configuration examples, and a decision guide to help users choose the right approach for their needs.

Key Changes:

  • Added package comparison table with NuGet badges and download statistics for both packages
  • Expanded installation section with detailed examples for both the source generator and runtime package options
  • Added MSBuild configuration examples showing how to configure the source generator with properties like SourceGeneratorToolsInclude and SourceGeneratorToolsUsePublicModifier
  • Created "When to Use Which Approach" section with a comprehensive comparison table covering deployment, dependencies, use cases, and other decision factors
  • Updated gitignore to exclude .DS_Store files

Documentation Improvements:

  • Clear distinction between the two package options (Generator vs Runtime)
  • Proper .csproj examples with correct OutputItemType and ReferenceOutputAssembly attributes for the generator package
  • Explanation of how CompilerVisibleProperty declarations work with the generator's .props file
  • Decision matrix to help users choose between source generator and runtime package

✅ Checklist

  • My changes build cleanly
  • I've added/updated relevant tests (N/A - documentation only)
  • I've added/updated documentation or README
  • I've followed the coding style for this project
  • I've tested the changes locally (if applicable)

🧪 Related Issues or PRs

This builds on the recent MSBuild property support added in #9 by documenting how to use the configuration options.


💬 Notes for Reviewers

This is primarily a documentation enhancement PR. The README now provides:

  1. Clearer package positioning - Users can immediately see there are two packages and understand their purposes
  2. Actionable installation guides - Copy-paste ready .csproj examples for both packages
  3. Configuration documentation - Shows how to use the new MSBuild properties from feat: Add MSBuild property support for configurable source generation #9
  4. Decision guidance - Helps users make informed choices about which package to use

The changes make the project more accessible to new users while providing comprehensive guidance for both common use cases (building source generators vs using utilities in applications).

Please verify:

  • The NuGet package names and versions are correct
  • The .csproj examples follow best practices
  • The comparison table accurately represents the trade-offs between the two approaches

j-d-ha and others added 4 commits December 21, 2025 11:27
…ation examples**

- Added explanation for runtime and source generator package usage.
- Included installation instructions for both package options.
- Added detailed MSBuild configuration guide for the source generator.
- Documented the features with expanded usage examples.
- Introduced a comparison table for runtime vs. source generator usage.
- Added improved sections for EquatableArray and HashCode usage.
- Updated .gitignore to ignore macOS .DS_Store files.
- Ensures cleaner commits by excluding system-generated files.
- Changed VersionPrefix from 0.1.0-alpha to 0.1.0-beta in Directory.Build.props.
- Prepares the project for the next beta release phase.
@j-d-ha
j-d-ha merged commit 023de14 into main Dec 21, 2025
1 check passed
@j-d-ha
j-d-ha deleted the docs/update-for-new-package branch December 21, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant