Biz.Bizadm.LuaScriptEngineLib
1.0.1
dotnet add package Biz.Bizadm.LuaScriptEngineLib --version 1.0.1
NuGet\Install-Package Biz.Bizadm.LuaScriptEngineLib -Version 1.0.1
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="Biz.Bizadm.LuaScriptEngineLib" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Biz.Bizadm.LuaScriptEngineLib" Version="1.0.1" />
<PackageReference Include="Biz.Bizadm.LuaScriptEngineLib" />
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 Biz.Bizadm.LuaScriptEngineLib --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Biz.Bizadm.LuaScriptEngineLib, 1.0.1"
#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 Biz.Bizadm.LuaScriptEngineLib@1.0.1
#: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=Biz.Bizadm.LuaScriptEngineLib&version=1.0.1
#tool nuget:?package=Biz.Bizadm.LuaScriptEngineLib&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
LuaScriptEngineLib
C#/.NET에서 Lua 스크립트를 실행하기 위한 엔진 라이브러리입니다. NeoLua를 기반으로 하며, 팩토리·바인딩·샌드박스·취소를 제공합니다.
주요 기능
- 스크립트 실행:
ILuaScriptEngine의Eval/EvalAsync로 Lua 소스 실행 - C# ↔ Lua 바인딩:
LuaScriptEngineFactory에AddFunction/AddLibrary로 전역 함수·라이브러리 등록,GetFunction으로 Lua 함수를 형식 안전하게 호출 - 출력 연동:
ILuaScriptEngineOutputEmitter로print등 스크립트 출력을 호스트에 전달 - 샌드박스(기본 활성): 파일·OS·패키지·디버그·동적 로드 등 위험 API와 CLR 접근을 차단
- 실행 취소:
CancellationToken으로 실행 중 스크립트를 중단
사용 흐름
LuaScriptEngineFactory생성 후 필요 시 함수·라이브러리 등록CreateEngine으로ILuaScriptEngine생성Eval/EvalAsync로 스크립트 실행 (필요 시GetFunction으로 Lua 함수 호출)- 사용 후
Dispose
대상
- 대상 프레임워크:
net10.0 - 의존성:
NeoLuaDebug
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- NeoLuaDebug (>= 1.3.20-beta.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.