Kephas.Scripting.Lua
11.1.0
Prefix Reserved
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
dotnet add package Kephas.Scripting.Lua --version 11.1.0
NuGet\Install-Package Kephas.Scripting.Lua -Version 11.1.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="Kephas.Scripting.Lua" Version="11.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kephas.Scripting.Lua" Version="11.1.0" />Directory.Packages.props
<PackageReference Include="Kephas.Scripting.Lua" />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 Kephas.Scripting.Lua --version 11.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Kephas.Scripting.Lua, 11.1.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 Kephas.Scripting.Lua@11.1.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=Kephas.Scripting.Lua&version=11.1.0Install as a Cake Addin
#tool nuget:?package=Kephas.Scripting.Lua&version=11.1.0Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
LUA Scripting
Introduction
The LUA scripting area in Kephas handles LUA dynamic code execution using NeoLua.
Check the following packages for more information:
Usage
- String based script execution
// normally you would get the processor injected into the service constructor.
var processor = injector.Resolve<IScriptProcessor>();
var script = new LuaStringScript(
@"function Power(a)
return a * a
end
return Power(value) + 3");
var result = await processor.ExecuteAsync(script), new { value = 5 })).PreserveThreadContext();
Assert.Equals(28, result);
- File based script execution
The file scripts assume that the language can be inferred from the file extension.
For LUA, it means that the file needs to and with a *.lua extension.
If this is not the case, make sure you specify the language explicitly when creating a FileScript.
// normally you would get the processor injected into the service constructor.
var processor = injector.Resolve<IScriptProcessor>();
// LUA scripts ending with *.lua
var result = await processor.ExecuteAsync(new FileScript("myscript.lua"), new { value = 5 })).PreserveThreadContext();
Assert.Equals(28, result);
// LUA scripts not ending with *.lua
var result = await processor.ExecuteAsync(new FileScript("myscript.txt", LuaLanguageService.Language), new { value = 5 })).PreserveThreadContext();
Assert.Equals(28, result);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- Kephas.Scripting (>= 11.1.0)
- NeoLua (>= 1.3.14)
-
net6.0
- Kephas.Scripting (>= 11.1.0)
- NeoLua (>= 1.3.14)
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 |
|---|---|---|
| 11.1.0 | 901 | 4/13/2022 |
| 11.1.0-dev.4 | 317 | 4/6/2022 |
| 11.1.0-dev.3 | 304 | 3/30/2022 |
| 11.1.0-dev.2 | 303 | 3/23/2022 |
| 11.1.0-dev.1 | 290 | 3/23/2022 |
| 11.0.0 | 653 | 3/11/2022 |
| 11.0.0-dev.7 | 286 | 3/7/2022 |
| 11.0.0-dev.6 | 288 | 2/28/2022 |
| 11.0.0-dev.5 | 300 | 2/26/2022 |
| 11.0.0-dev.4 | 302 | 2/24/2022 |
| 11.0.0-dev.3 | 321 | 2/23/2022 |
| 11.0.0-dev.2 | 295 | 2/18/2022 |
| 11.0.0-dev.1 | 327 | 2/7/2022 |
| 10.3.0 | 696 | 1/18/2022 |
| 10.2.0 | 997 | 12/3/2021 |
| 10.1.0 | 5,114 | 11/23/2021 |
| 10.1.0-dev.7 | 357 | 11/17/2021 |
| 10.1.0-dev.6 | 321 | 11/16/2021 |
| 10.1.0-dev.5 | 337 | 11/10/2021 |
| 10.1.0-dev.4 | 335 | 11/8/2021 |
Loading failed
Please check https://github.com/kephas-software/kephas/releases for the change log.
Also check the documentation and the samples from https://github.com/kephas-software/kephas/wiki and https://github.com/kephas-software/kephas/tree/master/Samples.