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"
#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 | 683 | 4/13/2022 |
11.1.0-dev.4 | 193 | 4/6/2022 |
11.1.0-dev.3 | 177 | 3/30/2022 |
11.1.0-dev.2 | 174 | 3/23/2022 |
11.1.0-dev.1 | 171 | 3/23/2022 |
11.0.0 | 517 | 3/11/2022 |
11.0.0-dev.7 | 173 | 3/7/2022 |
11.0.0-dev.6 | 173 | 2/28/2022 |
11.0.0-dev.5 | 171 | 2/26/2022 |
11.0.0-dev.4 | 177 | 2/24/2022 |
11.0.0-dev.3 | 184 | 2/23/2022 |
11.0.0-dev.2 | 178 | 2/18/2022 |
11.0.0-dev.1 | 192 | 2/7/2022 |
10.3.0 | 546 | 1/18/2022 |
10.2.0 | 874 | 12/3/2021 |
10.1.0 | 4,978 | 11/23/2021 |
10.1.0-dev.7 | 237 | 11/17/2021 |
10.1.0-dev.6 | 209 | 11/16/2021 |
10.1.0-dev.5 | 219 | 11/10/2021 |
10.1.0-dev.4 | 211 | 11/8/2021 |
10.1.0-dev.3 | 192 | 11/8/2021 |
10.1.0-dev.2 | 211 | 11/4/2021 |
10.1.0-dev.1 | 211 | 11/3/2021 |
10.0.1 | 469 | 10/16/2021 |
10.0.0 | 417 | 10/13/2021 |
10.0.0-dev.4 | 201 | 10/13/2021 |
10.0.0-dev.3 | 215 | 10/11/2021 |
10.0.0-dev.2 | 277 | 10/8/2021 |
9.3.4 | 432 | 8/25/2021 |
9.3.3 | 428 | 8/25/2021 |
9.3.2 | 446 | 8/24/2021 |
9.3.1 | 455 | 8/12/2021 |
9.3.0 | 464 | 8/12/2021 |
9.2.0 | 431 | 6/17/2021 |
9.1.0 | 422 | 6/17/2021 |
9.1.0-dev.8 | 255 | 5/26/2021 |
9.1.0-dev.7 | 240 | 5/17/2021 |
9.1.0-dev.6 | 242 | 4/28/2021 |
9.1.0-dev.5 | 261 | 4/23/2021 |
9.1.0-dev.4 | 247 | 4/21/2021 |
9.1.0-dev.3 | 253 | 4/17/2021 |
9.1.0-dev.2 | 246 | 4/12/2021 |
9.1.0-dev.1 | 250 | 4/9/2021 |
9.0.5 | 451 | 3/31/2021 |
9.0.4 | 492 | 3/23/2021 |
9.0.3 | 478 | 3/20/2021 |
9.0.1 | 424 | 3/18/2021 |
9.0.0 | 471 | 3/17/2021 |
9.0.0-dev.4 | 257 | 3/4/2021 |
9.0.0-dev.3 | 265 | 3/1/2021 |
9.0.0-dev.2 | 283 | 2/22/2021 |
8.4.0 | 566 | 11/11/2020 |
8.3.0 | 543 | 10/28/2020 |
8.2.0 | 564 | 10/16/2020 |
8.1.0 | 616 | 9/23/2020 |
8.0.0 | 547 | 7/1/2020 |
8.0.0-dev.44 | 360 | 6/25/2020 |
8.0.0-dev.43 | 351 | 6/23/2020 |
8.0.0-dev.42 | 377 | 6/22/2020 |
8.0.0-dev.41 | 375 | 6/18/2020 |
8.0.0-dev.40 | 337 | 6/18/2020 |
8.0.0-dev.39 | 353 | 6/15/2020 |
8.0.0-dev.38 | 472 | 6/14/2020 |
8.0.0-dev.37 | 331 | 6/13/2020 |
8.0.0-dev.36 | 378 | 6/13/2020 |
8.0.0-dev.35 | 324 | 6/12/2020 |
8.0.0-dev.34 | 363 | 6/12/2020 |
8.0.0-dev.33 | 406 | 6/10/2020 |
8.0.0-dev.32 | 339 | 6/1/2020 |
8.0.0-dev.31 | 370 | 6/1/2020 |
8.0.0-dev.30 | 442 | 5/30/2020 |
8.0.0-dev.28 | 360 | 5/28/2020 |
8.0.0-dev.27 | 366 | 5/15/2020 |
8.0.0-dev.26 | 344 | 5/14/2020 |
8.0.0-dev.25 | 352 | 5/14/2020 |
8.0.0-dev.24 | 348 | 5/13/2020 |
8.0.0-dev.23 | 352 | 5/13/2020 |
8.0.0-dev.22 | 354 | 5/13/2020 |
8.0.0-dev.21 | 352 | 5/12/2020 |
8.0.0-dev.20 | 355 | 5/12/2020 |
8.0.0-dev.19 | 351 | 5/7/2020 |
8.0.0-dev.18 | 359 | 5/7/2020 |
8.0.0-dev.17 | 343 | 5/6/2020 |
8.0.0-dev.16 | 359 | 5/6/2020 |
8.0.0-dev.15 | 347 | 5/5/2020 |
8.0.0-dev.14 | 345 | 5/5/2020 |
8.0.0-dev.13 | 361 | 5/4/2020 |
7.6.0-dev.13 | 371 | 5/1/2020 |
7.6.0-dev.12 | 371 | 4/30/2020 |
7.6.0-dev.11 | 355 | 4/28/2020 |
7.6.0-dev.10 | 339 | 4/27/2020 |
7.6.0-dev.9 | 342 | 4/24/2020 |
7.6.0-dev.8 | 345 | 4/22/2020 |
7.6.0-dev.7 | 331 | 4/15/2020 |
7.6.0-dev.6 | 337 | 4/15/2020 |
7.6.0-dev.5 | 336 | 4/15/2020 |
7.6.0-dev.4 | 448 | 4/11/2020 |
7.6.0-dev.3 | 334 | 4/10/2020 |
7.6.0-dev.2 | 316 | 4/10/2020 |
7.6.0-dev.1 | 406 | 4/8/2020 |
7.5.2 | 608 | 3/20/2020 |
7.5.1 | 579 | 3/12/2020 |
7.5.0 | 548 | 3/10/2020 |
7.5.0-dev.18 | 356 | 3/5/2020 |
7.5.0-dev.17 | 357 | 3/5/2020 |
7.5.0-dev.16 | 385 | 3/4/2020 |
7.5.0-dev.15 | 320 | 3/3/2020 |
7.5.0-dev.14 | 333 | 3/3/2020 |
7.5.0-dev.13 | 322 | 2/29/2020 |
7.5.0-dev.12 | 446 | 2/29/2020 |
7.5.0-dev.10 | 310 | 2/25/2020 |
7.5.0-dev.9 | 364 | 2/20/2020 |
7.5.0-dev.8 | 384 | 2/18/2020 |
7.5.0-dev.7 | 329 | 2/18/2020 |
7.5.0-dev.6 | 353 | 2/14/2020 |
7.5.0-dev.5 | 368 | 2/12/2020 |
7.5.0-dev.4 | 331 | 2/11/2020 |
7.5.0-dev.3 | 306 | 2/11/2020 |
7.5.0-dev.2 | 458 | 2/8/2020 |
7.5.0-dev.1 | 352 | 2/7/2020 |
7.4.2 | 562 | 2/5/2020 |
7.4.1 | 622 | 2/3/2020 |
7.4.0 | 656 | 1/31/2020 |
7.4.0-dev.4 | 396 | 1/31/2020 |
7.4.0-dev.3 | 383 | 1/29/2020 |
7.4.0-dev.2 | 337 | 1/28/2020 |
7.3.1 | 584 | 1/21/2020 |
7.3.1-preview.7 | 332 | 1/21/2020 |
7.3.1-preview.1 | 369 | 1/20/2020 |
7.3.0 | 539 | 1/19/2020 |
7.2.6 | 637 | 1/18/2020 |
7.2.5 | 612 | 12/19/2019 |
7.2.4 | 578 | 12/19/2019 |
7.2.3 | 593 | 12/16/2019 |
7.2.2 | 607 | 12/9/2019 |
7.2.1 | 607 | 12/4/2019 |
7.2.0 | 563 | 11/26/2019 |
7.2.0-preview.10 | 340 | 11/20/2019 |
7.2.0-preview.9 | 332 | 11/19/2019 |
7.2.0-preview.8 | 339 | 11/18/2019 |
7.2.0-preview.6 | 353 | 11/14/2019 |
7.2.0-preview.5 | 339 | 11/14/2019 |
7.2.0-preview.4 | 335 | 11/14/2019 |
7.2.0-preview.2 | 348 | 11/11/2019 |
7.2.0-preview.1 | 336 | 11/9/2019 |
7.1.0 | 624 | 11/6/2019 |
7.1.0-preview.8 | 351 | 11/5/2019 |
7.1.0-preview.7 | 345 | 11/4/2019 |
7.1.0-preview.6 | 342 | 11/1/2019 |
7.1.0-preview.5 | 362 | 10/31/2019 |
7.1.0-preview.4 | 362 | 10/30/2019 |
7.1.0-preview.3 | 335 | 10/26/2019 |
7.1.0-preview.2 | 345 | 10/25/2019 |
7.1.0-preview.1 | 348 | 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.