AliLib.Analyzer 0.2.6

dotnet add package AliLib.Analyzer --version 0.2.6
                    
NuGet\Install-Package AliLib.Analyzer -Version 0.2.6
                    
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="AliLib.Analyzer" Version="0.2.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AliLib.Analyzer" Version="0.2.6" />
                    
Directory.Packages.props
<PackageReference Include="AliLib.Analyzer" />
                    
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 AliLib.Analyzer --version 0.2.6
                    
#r "nuget: AliLib.Analyzer, 0.2.6"
                    
#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 AliLib.Analyzer@0.2.6
                    
#: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=AliLib.Analyzer&version=0.2.6
                    
Install as a Cake Addin
#tool nuget:?package=AliLib.Analyzer&version=0.2.6
                    
Install as a Cake Tool

AliLib

Badge

AliLib Is a Blade & Sorcery Modding Library designed to promote easier, more modular scripted mods. (specifically spells)

Want to use AliLib? Check out the Wiki!

AliLib.Analyzer

A Roslyn Analyzer that handles semantic checks aswell as provides some functionality for AliLib build events.

AliLib.Core

The core library for AliLib, all of the non-build related content lives here.

Cloning the Repo

Due to the fact AliLib uses Blade & Sorcery assemblies the best way to work with the project is to clone it into Blade & Sorcery/BladeAndSorcery_Data/StreamingAssets.

Features

For a full list of features, check the Wiki.

MSBuild Integration


<PropertyGroup>
  <ModPath>$(ProjectDir)..\..\Mods\AliLibTest</ModPath>
</PropertyGroup>

Easier Addressables

[Addressable("ProjectionSorcery.GlassSpawn")]
public static AudioClip? MyClip { get; set; }
AddressableLibrary.LoadCachedAssetAsync<Texture2D>(iconAddress, (text) => matInstance.SetTexture("_Sprite", text));

Garbage Collection

// A Garbage-Collected native object (SmartObject)
SmartObject<Material> mat = renderer.material;

Exported Strings

[ExportedString("Test/MyText.txt")]
public const string MyAsset = "Hello, World!";

Mod Events

public ModEvent MyEvent {  get; set; } = new ModEvent();

/// <inheritdoc />
public override void ScriptUpdate()
{
  base.ScriptUpdate();

  MyEvent.Invoke();
  MyEvent.Cancelled = true;

  if (MyClip != null && Platform.IsPCVR)
  {
    Debug.Log($"[AliLib] {MyClip.length}");
  }
}
There are no supported framework assets in this 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.2.6 124 4/19/2026
0.2.4 114 4/10/2026
0.2.3 108 4/7/2026
0.2.2 116 4/7/2026
0.2.1 107 4/7/2026
0.2.0 107 4/7/2026
0.1.1 108 4/7/2026
0.1.0 148 4/7/2026