A minimal, runnable console project demonstrating every AutoMap.Generator attribute in one file — perfect for kicking the tires without touching an existing codebase.
git clone https://github.com/Swevo/AutoMap.Generator.git
cd AutoMap.Generator/templates/content/AutoMap.Demo
dotnet runFrom the repo root:
dotnet pack templates/AutoMap.Generator.Templates.csproj -o ./nupkgs
dotnet new install ./nupkgs/AutoMap.Generator.Templates.*.nupkg
dotnet new automap-demo -o MyAutoMapDemo
cd MyAutoMapDemo
dotnet runUninstall with:
dotnet new uninstall AutoMap.Generator.TemplatesThe generated Program.cs exercises, in order:
- Basic
[Map]mapping +[TrimStrings] - Automatic nested object + collection mapping
- Cross-enum mapping by member name
[MapWith]custom expressions and[MapFormat][MapWhen]conditional mapping- Reverse mapping (
Reverse = true) IMapFrom<T>convention-based mapping- Constructor mapping for positional records
- Partial method hooks (
On{MethodName}) IQueryableprojection (GenerateProjection = true)
Every line prints its own output, so you can read Program.cs top-to-bottom
alongside the console output to see exactly which attribute produced which
result.