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
                    
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
                    
#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.0
                    
Install as a Cake Addin
#tool nuget:?package=Kephas.Scripting.Lua&version=11.1.0
                    
Install as a Cake Tool

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 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.

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 723 4/13/2022
11.1.0-dev.4 234 4/6/2022
11.1.0-dev.3 223 3/30/2022
11.1.0-dev.2 208 3/23/2022
11.1.0-dev.1 209 3/23/2022
11.0.0 548 3/11/2022
11.0.0-dev.7 205 3/7/2022
11.0.0-dev.6 205 2/28/2022
11.0.0-dev.5 212 2/26/2022
11.0.0-dev.4 214 2/24/2022
11.0.0-dev.3 227 2/23/2022
11.0.0-dev.2 213 2/18/2022
11.0.0-dev.1 229 2/7/2022
10.3.0 583 1/18/2022
10.2.0 905 12/3/2021
10.1.0 5,011 11/23/2021
10.1.0-dev.7 269 11/17/2021
10.1.0-dev.6 241 11/16/2021
10.1.0-dev.5 254 11/10/2021
10.1.0-dev.4 242 11/8/2021
10.1.0-dev.3 223 11/8/2021
10.1.0-dev.2 241 11/4/2021
10.1.0-dev.1 250 11/3/2021
10.0.1 507 10/16/2021
10.0.0 452 10/13/2021
10.0.0-dev.4 235 10/13/2021
10.0.0-dev.3 248 10/11/2021
10.0.0-dev.2 308 10/8/2021
9.3.4 464 8/25/2021
9.3.3 461 8/25/2021
9.3.2 491 8/24/2021
9.3.1 488 8/12/2021
9.3.0 495 8/12/2021
9.2.0 462 6/17/2021
9.1.0 453 6/17/2021
9.1.0-dev.8 287 5/26/2021
9.1.0-dev.7 271 5/17/2021
9.1.0-dev.6 275 4/28/2021
9.1.0-dev.5 298 4/23/2021
9.1.0-dev.4 283 4/21/2021
9.1.0-dev.3 285 4/17/2021
9.1.0-dev.2 280 4/12/2021
9.1.0-dev.1 280 4/9/2021
9.0.5 482 3/31/2021
9.0.4 531 3/23/2021
9.0.3 510 3/20/2021
9.0.1 459 3/18/2021
9.0.0 516 3/17/2021
9.0.0-dev.4 293 3/4/2021
9.0.0-dev.3 298 3/1/2021
9.0.0-dev.2 320 2/22/2021
8.4.0 605 11/11/2020
8.3.0 585 10/28/2020
8.2.0 599 10/16/2020
8.1.0 656 9/23/2020
8.0.0 581 7/1/2020
8.0.0-dev.44 393 6/25/2020
8.0.0-dev.43 383 6/23/2020
8.0.0-dev.42 416 6/22/2020
8.0.0-dev.41 411 6/18/2020
8.0.0-dev.40 371 6/18/2020
8.0.0-dev.39 388 6/15/2020
8.0.0-dev.38 512 6/14/2020
8.0.0-dev.37 374 6/13/2020
8.0.0-dev.36 414 6/13/2020
8.0.0-dev.35 365 6/12/2020
8.0.0-dev.34 403 6/12/2020
8.0.0-dev.33 448 6/10/2020
8.0.0-dev.32 380 6/1/2020
8.0.0-dev.31 412 6/1/2020
8.0.0-dev.30 487 5/30/2020
8.0.0-dev.28 401 5/28/2020
8.0.0-dev.27 399 5/15/2020
8.0.0-dev.26 385 5/14/2020
8.0.0-dev.25 386 5/14/2020
8.0.0-dev.24 381 5/13/2020
8.0.0-dev.23 393 5/13/2020
8.0.0-dev.22 393 5/13/2020
8.0.0-dev.21 390 5/12/2020
8.0.0-dev.20 387 5/12/2020
8.0.0-dev.19 391 5/7/2020
8.0.0-dev.18 393 5/7/2020
8.0.0-dev.17 382 5/6/2020
8.0.0-dev.16 404 5/6/2020
8.0.0-dev.15 392 5/5/2020
8.0.0-dev.14 385 5/5/2020
8.0.0-dev.13 395 5/4/2020
7.6.0-dev.13 406 5/1/2020
7.6.0-dev.12 412 4/30/2020
7.6.0-dev.11 396 4/28/2020
7.6.0-dev.10 374 4/27/2020
7.6.0-dev.9 376 4/24/2020
7.6.0-dev.8 387 4/22/2020
7.6.0-dev.7 368 4/15/2020
7.6.0-dev.6 371 4/15/2020
7.6.0-dev.5 370 4/15/2020
7.6.0-dev.4 486 4/11/2020
7.6.0-dev.3 368 4/10/2020
7.6.0-dev.2 350 4/10/2020
7.6.0-dev.1 449 4/8/2020
7.5.2 648 3/20/2020
7.5.1 617 3/12/2020
7.5.0 584 3/10/2020
7.5.0-dev.18 390 3/5/2020
7.5.0-dev.17 393 3/5/2020
7.5.0-dev.16 419 3/4/2020
7.5.0-dev.15 362 3/3/2020
7.5.0-dev.14 374 3/3/2020
7.5.0-dev.13 356 2/29/2020
7.5.0-dev.12 493 2/29/2020
7.5.0-dev.10 345 2/25/2020
7.5.0-dev.9 398 2/20/2020
7.5.0-dev.8 419 2/18/2020
7.5.0-dev.7 370 2/18/2020
7.5.0-dev.6 399 2/14/2020
7.5.0-dev.5 413 2/12/2020
7.5.0-dev.4 366 2/11/2020
7.5.0-dev.3 353 2/11/2020
7.5.0-dev.2 494 2/8/2020
7.5.0-dev.1 391 2/7/2020
7.4.2 596 2/5/2020
7.4.1 665 2/3/2020
7.4.0 692 1/31/2020
7.4.0-dev.4 431 1/31/2020
7.4.0-dev.3 418 1/29/2020
7.4.0-dev.2 371 1/28/2020
7.3.1 630 1/21/2020
7.3.1-preview.7 366 1/21/2020
7.3.1-preview.1 415 1/20/2020
7.3.0 573 1/19/2020
7.2.6 671 1/18/2020
7.2.5 647 12/19/2019
7.2.4 612 12/19/2019
7.2.3 627 12/16/2019
7.2.2 641 12/9/2019
7.2.1 641 12/4/2019
7.2.0 602 11/26/2019
7.2.0-preview.10 375 11/20/2019
7.2.0-preview.9 375 11/19/2019
7.2.0-preview.8 374 11/18/2019
7.2.0-preview.6 396 11/14/2019
7.2.0-preview.5 381 11/14/2019
7.2.0-preview.4 369 11/14/2019
7.2.0-preview.2 391 11/11/2019
7.2.0-preview.1 372 11/9/2019
7.1.0 658 11/6/2019
7.1.0-preview.8 391 11/5/2019
7.1.0-preview.7 381 11/4/2019
7.1.0-preview.6 379 11/1/2019
7.1.0-preview.5 396 10/31/2019
7.1.0-preview.4 397 10/30/2019
7.1.0-preview.3 368 10/26/2019
7.1.0-preview.2 386 10/25/2019
7.1.0-preview.1 382 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.