Skip to content
Hanks edited this page Aug 21, 2026 · 8 revisions

AuroraScript documentation

Applies to AuroraScript.JIT 4.0.0.

GitHub Repository

文档目录 · Documentation Directory

Overview

AuroraScript 是嵌入 .NET 宿主程序的轻量脚本引擎。脚本被编译为 CIL,并由 CLR/JIT 执行;它借鉴 JavaScript 的表达式、对象、数组、闭包和模块写法,但不是 ECMAScript 实现,也不承诺浏览器或 Node.js 兼容性。

AuroraScript is a lightweight scripting engine embedded in .NET hosts. Scripts compile to CIL and execute through the CLR/JIT. Its expressions, objects, arrays, closures, and module syntax are JavaScript-inspired, but it is not an ECMAScript implementation and does not promise browser or Node.js compatibility.

Start Here

  1. 新用户先阅读快速开始
  2. 编写脚本时使用语言指南脚本 API 参考
  3. 在 C# 中嵌入引擎时阅读宿主集成.NET Host API 参考
  4. 使用 AI、MCP、Language Server 或 Visual Studio 时前往工具链
  5. 需要保留 AuroraScript 类型的配置或持久化数据时阅读TDoc 类型文档
  1. New users should begin with Getting Started.
  2. Script authors should use the Language Guide and Script API Reference.
  3. .NET hosts should read Host Integration and the .NET Host API Reference.
  4. For AI, MCP, the language server, or Visual Studio, see Tooling.
  5. Read TDoc Typed Document when configuration or persisted data must retain AuroraScript types.

每个脚本 API 对象各有独立页面;每个公开成员都包含用途、参数、返回值、边界行为和可复制的最小示例。

Each script API object has its own page. Every public member includes its purpose, parameters, return value, boundary behavior, and a copyable minimal example.

Clone this wiki locally