Lottie-Windows/LottieGen
Aaron Schultz 7ae8a39e2d
Replace 'is null' with more compatible clause and fix MSBuild bug. (#465)
- Replace is null usages in generated code with downlevel equivalent to support older versions of C# in client applications
- Fix MSBuild task to send bool args correctly. The LottieGen cmdline only allows flags to be set without an associated value arg.
2021-08-20 12:56:03 -07:00
..
DotnetTool Convert LottieGen to .NET 5 and create LottieGen.MsBuild package. 2021-02-08 11:36:30 -08:00
MSBuildTask Replace 'is null' with more compatible clause and fix MSBuild bug. (#465) 2021-08-20 12:56:03 -07:00
win-x64 Convert LottieGen to .NET 5 and create LottieGen.MsBuild package. 2021-02-08 11:36:30 -08:00
Common.proj Convert LottieGen to .NET 5 and create LottieGen.MsBuild package. 2021-02-08 11:36:30 -08:00
CommonNupkg.props Convert LottieGen to .NET 5 and create LottieGen.MsBuild package. 2021-02-08 11:36:30 -08:00
LottieGen.sln Added support for animated round corners modifier (#452) 2021-07-22 11:48:03 -07:00
README.md Convert LottieGen to .NET 5 and create LottieGen.MsBuild package. 2021-02-08 11:36:30 -08:00

README.md

LottieGen command-line code generator for Lottie-Windows

LottieGen is a tool for generating C#, C++, and other outputs from Lottie / Bodymovin JSON files. LottieGen is built as a .NET global tool, which means it will run anywhere .NET Core is available, including Linux and Mac.

LottieGen requires .NET Core 5.0 SDK or later.

Run without installation

Local builds can be run directly. Just install .NET Core 5.0, build the LottieGen.sln solution and run the output.

f:\GitHub\Lottie-Windows\LottieGen\DotnetTool\bin\AnyCpu\Debug\net5.0\lottiegen.exe

And of course you can copy LottieGen to a directory and run directly without installing it, for example:

copy f:\GitHub\Lottie-Windows\LottieGen\DotnetTool\bin\AnyCpu\Debug\net5.0\* d:\mybuildtools

Install as a .NET Core global tool

The following commands are examples only; adjust the paths and versions as necessary.

LottieGen is built as a .NET global tool.

Installing

The latest release version can be installed from NuGet:

dotnet tool install -g LottieGen

A specific release version can be installed from NuGet:

dotnet tool install -g LottieGen --version 7.0.0

CI builds can be installed from Azure DevOps. From the main branch:

dotnet tool install -g LottieGen --add-source https://pkgs.dev.azure.com/dotnet/WindowsCommunityToolkit/_packaging/WindowsCommunityToolkit-MainLatest/nuget/v3/index.json --version 7.0.0-build.2

From PRs:

dotnet tool install -g LottieGen --add-source https://pkgs.dev.azure.com/dotnet/WindowsCommunityToolkit/_packaging/WindowsCommunityToolkit-PullRequests/nuget/v3/index.json --version 7.0.0-build.2

Note that these builds may not be as stable as the official release builds.

Local builds can be installed from your bin\nupkg directory:

dotnet tool install -g LottieGen --add-source f:\GitHub\Lottie-Windows\bin\nupkg

Local builds can also be run directly without installing, see above.

Updating

dotnet tool update -g LottieGen

Uninstalling

dotnet tool uninstall -g LottieGen

Help

All of the help for LottieGen is built into the tool.

LottieGen -Help