Kephas.Scripting.Lua
11.1.0
Prefix Reserved
dotnet add package Kephas.Scripting.Lua --version 11.1.0
NuGet\Install-Package Kephas.Scripting.Lua -Version 11.1.0
<PackageReference Include="Kephas.Scripting.Lua" Version="11.1.0" />
paket add Kephas.Scripting.Lua --version 11.1.0
#r "nuget: Kephas.Scripting.Lua, 11.1.0"
// Install Kephas.Scripting.Lua as a Cake Addin #addin nuget:?package=Kephas.Scripting.Lua&version=11.1.0 // Install Kephas.Scripting.Lua as a Cake Tool #tool nuget:?package=Kephas.Scripting.Lua&version=11.1.0
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. |
.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)
- 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 | 633 | 4/13/2022 |
11.1.0-dev.4 | 163 | 4/6/2022 |
11.1.0-dev.3 | 143 | 3/30/2022 |
11.1.0-dev.2 | 141 | 3/23/2022 |
11.1.0-dev.1 | 139 | 3/23/2022 |
11.0.0 | 481 | 3/11/2022 |
11.0.0-dev.7 | 140 | 3/7/2022 |
11.0.0-dev.6 | 140 | 2/28/2022 |
11.0.0-dev.5 | 135 | 2/26/2022 |
11.0.0-dev.4 | 144 | 2/24/2022 |
11.0.0-dev.3 | 148 | 2/23/2022 |
11.0.0-dev.2 | 146 | 2/18/2022 |
11.0.0-dev.1 | 154 | 2/7/2022 |
10.3.0 | 508 | 1/18/2022 |
10.2.0 | 840 | 12/3/2021 |
10.1.0 | 4,939 | 11/23/2021 |
10.1.0-dev.7 | 203 | 11/17/2021 |
10.1.0-dev.6 | 176 | 11/16/2021 |
10.1.0-dev.5 | 184 | 11/10/2021 |
10.1.0-dev.4 | 178 | 11/8/2021 |
10.1.0-dev.3 | 157 | 11/8/2021 |
10.1.0-dev.2 | 170 | 11/4/2021 |
10.1.0-dev.1 | 178 | 11/3/2021 |
10.0.1 | 431 | 10/16/2021 |
10.0.0 | 379 | 10/13/2021 |
10.0.0-dev.4 | 167 | 10/13/2021 |
10.0.0-dev.3 | 181 | 10/11/2021 |
10.0.0-dev.2 | 242 | 10/8/2021 |
9.3.4 | 398 | 8/25/2021 |
9.3.3 | 393 | 8/25/2021 |
9.3.2 | 411 | 8/24/2021 |
9.3.1 | 418 | 8/12/2021 |
9.3.0 | 428 | 8/12/2021 |
9.2.0 | 389 | 6/17/2021 |
9.1.0 | 387 | 6/17/2021 |
9.1.0-dev.8 | 219 | 5/26/2021 |
9.1.0-dev.7 | 204 | 5/17/2021 |
9.1.0-dev.6 | 201 | 4/28/2021 |
9.1.0-dev.5 | 222 | 4/23/2021 |
9.1.0-dev.4 | 206 | 4/21/2021 |
9.1.0-dev.3 | 215 | 4/17/2021 |
9.1.0-dev.2 | 206 | 4/12/2021 |
9.1.0-dev.1 | 211 | 4/9/2021 |
9.0.5 | 412 | 3/31/2021 |
9.0.4 | 450 | 3/23/2021 |
9.0.3 | 438 | 3/20/2021 |
9.0.1 | 382 | 3/18/2021 |
9.0.0 | 428 | 3/17/2021 |
9.0.0-dev.4 | 214 | 3/4/2021 |
9.0.0-dev.3 | 222 | 3/1/2021 |
9.0.0-dev.2 | 240 | 2/22/2021 |
8.4.0 | 515 | 11/11/2020 |
8.3.0 | 495 | 10/28/2020 |
8.2.0 | 520 | 10/16/2020 |
8.1.0 | 567 | 9/23/2020 |
8.0.0 | 499 | 7/1/2020 |
8.0.0-dev.44 | 312 | 6/25/2020 |
8.0.0-dev.43 | 305 | 6/23/2020 |
8.0.0-dev.42 | 332 | 6/22/2020 |
8.0.0-dev.41 | 328 | 6/18/2020 |
8.0.0-dev.40 | 293 | 6/18/2020 |
8.0.0-dev.39 | 309 | 6/15/2020 |
8.0.0-dev.38 | 425 | 6/14/2020 |
8.0.0-dev.37 | 286 | 6/13/2020 |
8.0.0-dev.36 | 332 | 6/13/2020 |
8.0.0-dev.35 | 276 | 6/12/2020 |
8.0.0-dev.34 | 316 | 6/12/2020 |
8.0.0-dev.33 | 359 | 6/10/2020 |
8.0.0-dev.32 | 290 | 6/1/2020 |
8.0.0-dev.31 | 323 | 6/1/2020 |
8.0.0-dev.30 | 394 | 5/30/2020 |
8.0.0-dev.28 | 310 | 5/28/2020 |
8.0.0-dev.27 | 313 | 5/15/2020 |
8.0.0-dev.26 | 293 | 5/14/2020 |
8.0.0-dev.25 | 301 | 5/14/2020 |
8.0.0-dev.24 | 300 | 5/13/2020 |
8.0.0-dev.23 | 301 | 5/13/2020 |
8.0.0-dev.22 | 302 | 5/13/2020 |
8.0.0-dev.21 | 301 | 5/12/2020 |
8.0.0-dev.20 | 305 | 5/12/2020 |
8.0.0-dev.19 | 299 | 5/7/2020 |
8.0.0-dev.18 | 310 | 5/7/2020 |
8.0.0-dev.17 | 294 | 5/6/2020 |
8.0.0-dev.16 | 305 | 5/6/2020 |
8.0.0-dev.15 | 295 | 5/5/2020 |
8.0.0-dev.14 | 293 | 5/5/2020 |
8.0.0-dev.13 | 311 | 5/4/2020 |
7.6.0-dev.13 | 321 | 5/1/2020 |
7.6.0-dev.12 | 321 | 4/30/2020 |
7.6.0-dev.11 | 296 | 4/28/2020 |
7.6.0-dev.10 | 289 | 4/27/2020 |
7.6.0-dev.9 | 291 | 4/24/2020 |
7.6.0-dev.8 | 292 | 4/22/2020 |
7.6.0-dev.7 | 280 | 4/15/2020 |
7.6.0-dev.6 | 286 | 4/15/2020 |
7.6.0-dev.5 | 286 | 4/15/2020 |
7.6.0-dev.4 | 400 | 4/11/2020 |
7.6.0-dev.3 | 286 | 4/10/2020 |
7.6.0-dev.2 | 268 | 4/10/2020 |
7.6.0-dev.1 | 356 | 4/8/2020 |
7.5.2 | 559 | 3/20/2020 |
7.5.1 | 528 | 3/12/2020 |
7.5.0 | 498 | 3/10/2020 |
7.5.0-dev.18 | 309 | 3/5/2020 |
7.5.0-dev.17 | 310 | 3/5/2020 |
7.5.0-dev.16 | 335 | 3/4/2020 |
7.5.0-dev.15 | 268 | 3/3/2020 |
7.5.0-dev.14 | 281 | 3/3/2020 |
7.5.0-dev.13 | 273 | 2/29/2020 |
7.5.0-dev.12 | 397 | 2/29/2020 |
7.5.0-dev.10 | 261 | 2/25/2020 |
7.5.0-dev.9 | 316 | 2/20/2020 |
7.5.0-dev.8 | 337 | 2/18/2020 |
7.5.0-dev.7 | 278 | 2/18/2020 |
7.5.0-dev.6 | 304 | 2/14/2020 |
7.5.0-dev.5 | 318 | 2/12/2020 |
7.5.0-dev.4 | 283 | 2/11/2020 |
7.5.0-dev.3 | 257 | 2/11/2020 |
7.5.0-dev.2 | 410 | 2/8/2020 |
7.5.0-dev.1 | 304 | 2/7/2020 |
7.4.2 | 512 | 2/5/2020 |
7.4.1 | 573 | 2/3/2020 |
7.4.0 | 608 | 1/31/2020 |
7.4.0-dev.4 | 348 | 1/31/2020 |
7.4.0-dev.3 | 336 | 1/29/2020 |
7.4.0-dev.2 | 287 | 1/28/2020 |
7.3.1 | 535 | 1/21/2020 |
7.3.1-preview.7 | 284 | 1/21/2020 |
7.3.1-preview.1 | 319 | 1/20/2020 |
7.3.0 | 489 | 1/19/2020 |
7.2.6 | 588 | 1/18/2020 |
7.2.5 | 563 | 12/19/2019 |
7.2.4 | 528 | 12/19/2019 |
7.2.3 | 544 | 12/16/2019 |
7.2.2 | 558 | 12/9/2019 |
7.2.1 | 558 | 12/4/2019 |
7.2.0 | 515 | 11/26/2019 |
7.2.0-preview.10 | 291 | 11/20/2019 |
7.2.0-preview.9 | 284 | 11/19/2019 |
7.2.0-preview.8 | 290 | 11/18/2019 |
7.2.0-preview.6 | 303 | 11/14/2019 |
7.2.0-preview.5 | 289 | 11/14/2019 |
7.2.0-preview.4 | 285 | 11/14/2019 |
7.2.0-preview.2 | 294 | 11/11/2019 |
7.2.0-preview.1 | 286 | 11/9/2019 |
7.1.0 | 574 | 11/6/2019 |
7.1.0-preview.8 | 298 | 11/5/2019 |
7.1.0-preview.7 | 295 | 11/4/2019 |
7.1.0-preview.6 | 292 | 11/1/2019 |
7.1.0-preview.5 | 311 | 10/31/2019 |
7.1.0-preview.4 | 312 | 10/30/2019 |
7.1.0-preview.3 | 285 | 10/26/2019 |
7.1.0-preview.2 | 291 | 10/25/2019 |
7.1.0-preview.1 | 297 | 10/24/2019 |
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.