MuThr.Sdk 0.8.0

dotnet add package MuThr.Sdk --version 0.8.0
                    
NuGet\Install-Package MuThr.Sdk -Version 0.8.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MuThr.Sdk" Version="0.8.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MuThr.Sdk" Version="0.8.0" />
                    
Directory.Packages.props
<PackageReference Include="MuThr.Sdk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MuThr.Sdk --version 0.8.0
                    
#r "nuget: MuThr.Sdk, 0.8.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MuThr.Sdk@0.8.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MuThr.Sdk&version=0.8.0
                    
Install as a Cake Addin
#tool nuget:?package=MuThr.Sdk&version=0.8.0
                    
Install as a Cake Tool

MuThr.Sdk

Building blocks that can be assembled into a build system using MIT license.

Usage

Implement ITaskProvider and IMuThrLogger (a simple logger implementation has been included in the SDK).

ITaskProvider

This interface determines how MuThr discovers potential tasks and maps them into build actions. To be able to create tasks through ITaskProvider, you'll need to create your own set of concrete types of IDataPoint and its sub-interfaces: ILeafDataPoint, IArrayDataPoint, and IObjDataPoint. Then, implement the factory method that takes in a string key and creates a data point object and a build action.

Example: imagine a simple asset builder for a game. Each task takes a *.tres file that's going to be compiled into a binary file for the game engine to consume. Therefore, the key would naturally be the path to the *.tres file since each asset should only be built once, and the factory logic can use the content in the *.tres file (such as a special field) to locate a json file that contains a build action somewhere in the assets directory.

DataPoint

MuThr SDK uses "DataPoint" as the building block to its description of external data. Every piece of data that's fed into the build system needs to be able to serialized into an IDataPoint object (or its derived types, see details in the source) so the JSON-based build action scripting can interpret them.

Example workflow: create the C# classes DataPoint, ArrayData, ObjData, and LeafData, each implement the interface of their namesake. Then make DataPoint a polymorphic JSON class with links to the other three concrete types. Write your asset description in JSON formats serializable to the aforementioned conrete types. Finally, implement a ITaskProvider class that deserializes the input data into DataPoint objects.

Logging

MuThr SDK uses Serilog for its logging purposes, with very minimum addition to its built-in features. Work is planned for a dedicated logging package, for now you are encouraged to implement your own logging and formatting and such.

Product Compatible and additional computed target framework versions.
.NET 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.8.0 214 11/24/2025
0.7.0 206 11/23/2025
0.6.1 212 11/4/2025
0.6.0 214 10/30/2025
0.5.1 139 10/18/2025
0.5.0 138 10/18/2025
0.4.2 196 9/23/2025
0.4.1 205 9/23/2025
0.4.0 219 9/20/2025
0.3.0 270 9/15/2025
0.2.0 239 9/15/2025
0.1.0 168 9/13/2025