SpawnDto 0.0.3

dotnet tool install --global SpawnDto --version 0.0.3
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local SpawnDto --version 0.0.3
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SpawnDto&version=0.0.3
                    
nuke :add-package SpawnDto --version 0.0.3
                    

SpawnDto

.NET tool for automatic generation of DTOs

Install

Package

For annotations.

dotnet add package SpawnDto.Core

Tool

For generating DTOs.

dotnet tool install SpawnDto --create-manifest-if-needed

Run

dotnet spawndto -a [assembly] --dto [dto-output-path] -n [dto-namespace] --convertorOutputPath [convertor-path] --convertorNamespace [convertor-namespace]

Post build event

Add this to you .csproj file.

<Target Name="Generate DTOs" AfterTargets="PostBuildEvent">
    <Exec Command="dotnet spawndto -a $(OutDir)$(TargetName).dll  --dto [dto-output-path] -n [dto-namespace] --convertorOutputPath [convertor-path] --convertorNamespace [convertor-namespace]" ContinueOnError="false" />
</Target>

This will generate DTOs every time after the project is build.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.0.3 259 3/11/2025
0.0.2 237 3/11/2025
0.0.1 224 3/11/2025