TypedTree.Generator.Core
2.0.1224
dotnet add package TypedTree.Generator.Core --version 2.0.1224
NuGet\Install-Package TypedTree.Generator.Core -Version 2.0.1224
<PackageReference Include="TypedTree.Generator.Core" Version="2.0.1224" />
<PackageVersion Include="TypedTree.Generator.Core" Version="2.0.1224" />
<PackageReference Include="TypedTree.Generator.Core" />
paket add TypedTree.Generator.Core --version 2.0.1224
#r "nuget: TypedTree.Generator.Core, 2.0.1224"
#:package TypedTree.Generator.Core@2.0.1224
#addin nuget:?package=TypedTree.Generator.Core&version=2.0.1224
#tool nuget:?package=TypedTree.Generator.Core&version=2.0.1224
TypedTree-Generator Core library.
Library that can be used to generate scheme files for the TypedTree-Editor
Can be used for more complex integration into a build pipeline, for simple use-cases consider one of the pre-made tools:
Installation
There are two ways to add the nuget package:
- Run:
dotnet add package TypedTree.Generator.Core --version 2.0.*
- Add the following to a
ItemGroupsection of your csproj:
<PackageReference Include="TypedTree.Generator.Core" Version="2.0.*" />
Usage
Steps for generating a scheme:
- Add usings:
using TypedTree.Generator.Core.Mapping;
using TypedTree.Generator.Core.Scheme;
using TypedTree.Generator.Core.Serialization;
using TypedTree.Generator.Core.Utilities;
- Create a ITypeCollection:
// Get an Assembly (or multiple) that will be used to look for types.
var typeCollection = TypeCollection.Create(typeof(TypeCollectionTests).Assembly);
- Create a mapping context:
// Create context object containing all the settings for the mapping.
var context = Context.Create(typeCollection, FieldSource.PublicConstructorParameters);
Note: To get more diagnostics you can also supply a Microsoft.Extensions.Logging.ILogger implementation here.
4. Map the scheme:
var treeDefinition = TreeMapper.MapTree(context, rootAliasType: typeof(Ai.INode));
- Export the json:
var json = JsonSerializer.ToJson(tree, JsonSerializer.Mode.Pretty);
Help
For more general documentation and examples visit the github project typedtree-generator-dotnet.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 12.0.1)
- System.Collections.Immutable (>= 1.5.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TypedTree.Generator.Core:
| Package | Downloads |
|---|---|
|
TypedTree.Generator.Cli
Cli tool that can be used to generate scheme files for the typedtree-editor: https://github.com/bastianblokland/typedtree-editor |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.1224 | 1,483 | 8/16/2019 |
| 1.2.1019 | 2,094 | 7/19/2019 |
| 1.1.888 | 1,569 | 4/22/2019 |
| 1.1.885 | 1,480 | 4/22/2019 |
| 1.0.865 | 1,449 | 4/21/2019 |
| 1.0.862 | 1,431 | 4/21/2019 |
| 1.0.857 | 1,510 | 4/21/2019 |
| 1.0.850 | 1,459 | 4/20/2019 |
| 1.0.847 | 1,400 | 4/19/2019 |
| 1.0.840 | 1,418 | 4/19/2019 |
| 1.0.834 | 1,460 | 4/19/2019 |
| 0.1.826 | 1,424 | 4/19/2019 |
| 0.1.824 | 1,462 | 4/19/2019 |
| 0.1.821 | 1,302 | 4/19/2019 |
| 0.1.818 | 1,323 | 4/19/2019 |
| 0.1.809 | 1,315 | 4/9/2019 |
| 0.1.0-dev-000810 | 1,167 | 4/10/2019 |