logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityProjectValidationRunner

    Runs Serenity's project-integrity validators (Health Check, Missing References, Localization Keys, Addressables Tagging, Audio Registration) and reports the combined result — interactively (a menu item that writes JSON) or headlessly (ValidateFromCommandLine()), so CI or an AI agent can confirm a project is correctly wired and self-correct. Hosted here because this assembly already references the Global validator engines and owns the localization one (Global cannot reference Localization without a cycle).

    Inheritance
    object
    SerenityProjectValidationRunner
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Localization.Installation.Settings.Editor
    Assembly: Serenity.UnityLocalization.Installation.Editor.dll
    Syntax
    public static class SerenityProjectValidationRunner

    Methods

    RunAll(string)

    Runs the selected validators and returns the combined report.

    Declaration
    public static SerenityValidationReport RunAll(string kind = "all")
    Parameters
    Type Name Description
    string kind

    all (default), health, references, localization, addressables, or audio-registration.

    Returns
    Type Description
    SerenityValidationReport

    The populated report.

    ValidateFromCommandLine()

    Headless entry point. Reads -validationKind (default all) and optional -validationResult <path> (writes the JSON report there, even when issues exist), logs the console report, and exits with code 1 when there are errors so CI / an agent can branch on it.

    Declaration
    public static void ValidateFromCommandLine()

    ValidateProjectToJson()

    Editor entry: runs all validators and writes the JSON report to a chosen path.

    Declaration
    public static void ValidateProjectToJson()
    In this article
    © 2026 Serenity. All Rights Reserved