Kephas.Scripting.Lua
11.1.0-dev.1
Prefix Reserved
See the version list below for details.
dotnet add package Kephas.Scripting.Lua --version 11.1.0-dev.1
NuGet\Install-Package Kephas.Scripting.Lua -Version 11.1.0-dev.1
<PackageReference Include="Kephas.Scripting.Lua" Version="11.1.0-dev.1" />
<PackageVersion Include="Kephas.Scripting.Lua" Version="11.1.0-dev.1" />
<PackageReference Include="Kephas.Scripting.Lua" />
paket add Kephas.Scripting.Lua --version 11.1.0-dev.1
#r "nuget: Kephas.Scripting.Lua, 11.1.0-dev.1"
#:package Kephas.Scripting.Lua@11.1.0-dev.1
#addin nuget:?package=Kephas.Scripting.Lua&version=11.1.0-dev.1&prerelease
#tool nuget:?package=Kephas.Scripting.Lua&version=11.1.0-dev.1&prerelease
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. |
-
.NETStandard 2.1
- Kephas.Scripting (>= 11.1.0-dev.1)
- NeoLua (>= 1.3.14)
-
net6.0
- Kephas.Scripting (>= 11.1.0-dev.1)
- 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 | 853 | 4/13/2022 |
| 11.1.0-dev.4 | 290 | 4/6/2022 |
| 11.1.0-dev.3 | 283 | 3/30/2022 |
| 11.1.0-dev.2 | 278 | 3/23/2022 |
| 11.1.0-dev.1 | 261 | 3/23/2022 |
| 11.0.0 | 623 | 3/11/2022 |
| 11.0.0-dev.7 | 254 | 3/7/2022 |
| 11.0.0-dev.6 | 265 | 2/28/2022 |
| 11.0.0-dev.5 | 277 | 2/26/2022 |
| 11.0.0-dev.4 | 282 | 2/24/2022 |
| 11.0.0-dev.3 | 290 | 2/23/2022 |
| 11.0.0-dev.2 | 268 | 2/18/2022 |
| 11.0.0-dev.1 | 295 | 2/7/2022 |
| 10.3.0 | 669 | 1/18/2022 |
| 10.2.0 | 973 | 12/3/2021 |
| 10.1.0 | 5,085 | 11/23/2021 |
| 10.1.0-dev.7 | 328 | 11/17/2021 |
| 10.1.0-dev.6 | 301 | 11/16/2021 |
| 10.1.0-dev.5 | 308 | 11/10/2021 |
| 10.1.0-dev.4 | 306 | 11/8/2021 |
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.