2019-02-19 22:27:27 +03:00
# LottieGen command-line code generator for Lottie-Windows
2018-12-01 06:31:52 +03:00
2021-02-08 22:36:30 +03:00
LottieGen is a tool for generating C#, C++, and other outputs from Lottie / Bodymovin JSON files. LottieGen is built as a [.NET global tool ](https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools ), which means it will run anywhere .NET Core is available, including Linux and Mac.
2018-12-01 06:31:52 +03:00
2023-04-19 08:59:16 +03:00
LottieGen requires [.NET Core 7.0 SDK ](https://dotnet.microsoft.com/download/dotnet-core/7.0 ) or later.
2018-12-01 06:31:52 +03:00
2020-11-13 22:51:45 +03:00
# Run without installation
2023-04-19 08:59:16 +03:00
Local builds can be run directly. Just install [.NET Core 7.0 ](https://dotnet.microsoft.com/download/dotnet-core/7.0 ), build the LottieGen.sln solution and run the output.
2020-11-13 22:51:45 +03:00
2023-04-19 08:59:16 +03:00
f:\GitHub\Lottie-Windows\LottieGen\DotnetTool\bin\AnyCpu\Debug\net7.0\lottiegen.exe
2020-11-13 22:51:45 +03:00
And of course you can copy LottieGen to a directory and run directly without installing it, for example:
2023-04-19 08:59:16 +03:00
copy f:\GitHub\Lottie-Windows\LottieGen\DotnetTool\bin\AnyCpu\Debug\net7.0\* d:\mybuildtools
2020-11-13 22:51:45 +03:00
# Install as a .NET Core global tool
2019-01-08 03:30:08 +03:00
*The following commands are examples only; adjust the paths and versions as necessary.*
2018-12-01 06:31:52 +03:00
2021-02-08 22:36:30 +03:00
LottieGen is built as a [.NET global tool ](https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools ).
2020-11-13 22:51:45 +03:00
### Installing
2020-08-06 23:00:19 +03:00
2019-02-19 22:27:27 +03:00
The latest release version can be [installed from NuGet ](https://www.nuget.org/packages/LottieGen ):
2018-12-01 06:31:52 +03:00
2019-01-04 22:49:26 +03:00
dotnet tool install -g LottieGen
2018-12-01 06:31:52 +03:00
2020-08-06 23:00:19 +03:00
A specific release version can be installed from NuGet:
2018-12-01 06:31:52 +03:00
2021-02-08 22:36:30 +03:00
dotnet tool install -g LottieGen --version 7.0.0
2018-12-01 06:31:52 +03:00
2021-02-08 22:36:30 +03:00
CI builds can be installed from Azure DevOps. From the [main branch ](https://dev.azure.com/dotnet/WindowsCommunityToolkit/_packaging?_a=package&feed=WindowsCommunityToolkit-MainLatest&package=LottieGen&protocolType=NuGet ):
2020-11-13 22:51:45 +03:00
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
2018-12-01 06:31:52 +03:00
2022-05-25 20:18:30 +03:00
From [PRs ](https://dev.azure.com/dotnet/WindowsCommunityToolkit/_packaging?_a=package&feed=WindowsCommunityToolkit-PullRequests&protocolType=NuGet&package=CommunityToolkit.WinUI.LottieGen ):
2018-12-01 06:31:52 +03:00
2020-11-13 22:51:45 +03:00
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.
2018-12-01 06:31:52 +03:00
2020-08-06 23:00:19 +03:00
Local builds can be installed from your bin\nupkg directory:
2019-11-16 01:06:54 +03:00
2021-02-08 22:36:30 +03:00
dotnet tool install -g LottieGen --add-source f:\GitHub\Lottie-Windows\bin\nupkg
2019-11-16 01:06:54 +03:00
2021-02-08 22:36:30 +03:00
Local builds can also be run directly without installing, see above.
2019-11-16 01:06:54 +03:00
2020-11-13 22:51:45 +03:00
### Updating
2019-02-19 22:27:27 +03:00
dotnet tool update -g LottieGen
2018-12-01 06:31:52 +03:00
2020-11-13 22:51:45 +03:00
### Uninstalling
2018-12-01 06:31:52 +03:00
dotnet tool uninstall -g LottieGen
2020-08-06 23:00:19 +03:00
# Help
2018-12-01 06:31:52 +03:00
All of the help for LottieGen is built into the tool.
2018-12-01 12:33:17 +03:00
2019-01-08 03:30:08 +03:00
LottieGen -Help