Kephas.Scripting.Lua 11.1.0-dev.1

Prefix Reserved
This is a prerelease version of Kephas.Scripting.Lua.
There is a newer version of this package available.
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                
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-dev.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Kephas.Scripting.Lua --version 11.1.0-dev.1                
#r "nuget: Kephas.Scripting.Lua, 11.1.0-dev.1"                
#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.
// Install Kephas.Scripting.Lua as a Cake Addin
#addin nuget:?package=Kephas.Scripting.Lua&version=11.1.0-dev.1&prerelease

// Install Kephas.Scripting.Lua as a Cake Tool
#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 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. 
.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 606 4/13/2022
11.1.0-dev.4 150 4/6/2022
11.1.0-dev.3 130 3/30/2022
11.1.0-dev.2 128 3/23/2022
11.1.0-dev.1 124 3/23/2022
11.0.0 464 3/11/2022
11.0.0-dev.7 126 3/7/2022
11.0.0-dev.6 126 2/28/2022
11.0.0-dev.5 119 2/26/2022
11.0.0-dev.4 130 2/24/2022
11.0.0-dev.3 134 2/23/2022
11.0.0-dev.2 130 2/18/2022
11.0.0-dev.1 138 2/7/2022
10.3.0 489 1/18/2022
10.2.0 822 12/3/2021
10.1.0 4,921 11/23/2021
10.1.0-dev.7 187 11/17/2021
10.1.0-dev.6 162 11/16/2021
10.1.0-dev.5 170 11/10/2021
10.1.0-dev.4 162 11/8/2021
10.1.0-dev.3 143 11/8/2021
10.1.0-dev.2 156 11/4/2021
10.1.0-dev.1 164 11/3/2021
10.0.1 413 10/16/2021
10.0.0 359 10/13/2021
10.0.0-dev.4 153 10/13/2021
10.0.0-dev.3 167 10/11/2021
10.0.0-dev.2 228 10/8/2021
9.3.4 380 8/25/2021
9.3.3 375 8/25/2021
9.3.2 392 8/24/2021
9.3.1 400 8/12/2021
9.3.0 409 8/12/2021
9.2.0 372 6/17/2021
9.1.0 368 6/17/2021
9.1.0-dev.8 206 5/26/2021
9.1.0-dev.7 191 5/17/2021
9.1.0-dev.6 187 4/28/2021
9.1.0-dev.5 205 4/23/2021
9.1.0-dev.4 192 4/21/2021
9.1.0-dev.3 201 4/17/2021
9.1.0-dev.2 187 4/12/2021
9.1.0-dev.1 197 4/9/2021
9.0.5 392 3/31/2021
9.0.4 429 3/23/2021
9.0.3 419 3/20/2021
9.0.1 363 3/18/2021
9.0.0 409 3/17/2021
9.0.0-dev.4 199 3/4/2021
9.0.0-dev.3 205 3/1/2021
9.0.0-dev.2 223 2/22/2021
8.4.0 493 11/11/2020
8.3.0 474 10/28/2020
8.2.0 495 10/16/2020
8.1.0 546 9/23/2020
8.0.0 477 7/1/2020
8.0.0-dev.44 295 6/25/2020
8.0.0-dev.43 288 6/23/2020
8.0.0-dev.42 315 6/22/2020
8.0.0-dev.41 312 6/18/2020
8.0.0-dev.40 276 6/18/2020
8.0.0-dev.39 292 6/15/2020
8.0.0-dev.38 408 6/14/2020
8.0.0-dev.37 269 6/13/2020
8.0.0-dev.36 315 6/13/2020
8.0.0-dev.35 259 6/12/2020
8.0.0-dev.34 299 6/12/2020
8.0.0-dev.33 342 6/10/2020
8.0.0-dev.32 272 6/1/2020
8.0.0-dev.31 305 6/1/2020
8.0.0-dev.30 376 5/30/2020
8.0.0-dev.28 293 5/28/2020
8.0.0-dev.27 294 5/15/2020
8.0.0-dev.26 274 5/14/2020
8.0.0-dev.25 282 5/14/2020
8.0.0-dev.24 281 5/13/2020
8.0.0-dev.23 282 5/13/2020
8.0.0-dev.22 283 5/13/2020
8.0.0-dev.21 281 5/12/2020
8.0.0-dev.20 285 5/12/2020
8.0.0-dev.19 280 5/7/2020
8.0.0-dev.18 290 5/7/2020
8.0.0-dev.17 273 5/6/2020
8.0.0-dev.16 285 5/6/2020
8.0.0-dev.15 275 5/5/2020
8.0.0-dev.14 273 5/5/2020
8.0.0-dev.13 292 5/4/2020
7.6.0-dev.13 302 5/1/2020
7.6.0-dev.12 302 4/30/2020
7.6.0-dev.11 276 4/28/2020
7.6.0-dev.10 269 4/27/2020
7.6.0-dev.9 272 4/24/2020
7.6.0-dev.8 273 4/22/2020
7.6.0-dev.7 263 4/15/2020
7.6.0-dev.6 267 4/15/2020
7.6.0-dev.5 266 4/15/2020
7.6.0-dev.4 378 4/11/2020
7.6.0-dev.3 265 4/10/2020
7.6.0-dev.2 248 4/10/2020
7.6.0-dev.1 334 4/8/2020
7.5.2 535 3/20/2020
7.5.1 504 3/12/2020
7.5.0 474 3/10/2020
7.5.0-dev.18 290 3/5/2020
7.5.0-dev.17 288 3/5/2020
7.5.0-dev.16 317 3/4/2020
7.5.0-dev.15 250 3/3/2020
7.5.0-dev.14 263 3/3/2020
7.5.0-dev.13 255 2/29/2020
7.5.0-dev.12 379 2/29/2020
7.5.0-dev.10 243 2/25/2020
7.5.0-dev.9 298 2/20/2020
7.5.0-dev.8 317 2/18/2020
7.5.0-dev.7 260 2/18/2020
7.5.0-dev.6 286 2/14/2020
7.5.0-dev.5 300 2/12/2020
7.5.0-dev.4 265 2/11/2020
7.5.0-dev.3 239 2/11/2020
7.5.0-dev.2 392 2/8/2020
7.5.0-dev.1 284 2/7/2020
7.4.2 489 2/5/2020
7.4.1 551 2/3/2020
7.4.0 585 1/31/2020
7.4.0-dev.4 329 1/31/2020
7.4.0-dev.3 316 1/29/2020
7.4.0-dev.2 262 1/28/2020
7.3.1 512 1/21/2020
7.3.1-preview.7 266 1/21/2020
7.3.1-preview.1 301 1/20/2020
7.3.0 466 1/19/2020
7.2.6 565 1/18/2020
7.2.5 539 12/19/2019
7.2.4 504 12/19/2019
7.2.3 521 12/16/2019
7.2.2 532 12/9/2019
7.2.1 536 12/4/2019
7.2.0 491 11/26/2019
7.2.0-preview.10 273 11/20/2019
7.2.0-preview.9 266 11/19/2019
7.2.0-preview.8 272 11/18/2019
7.2.0-preview.6 284 11/14/2019
7.2.0-preview.5 271 11/14/2019
7.2.0-preview.4 267 11/14/2019
7.2.0-preview.2 276 11/11/2019
7.2.0-preview.1 268 11/9/2019
7.1.0 552 11/6/2019
7.1.0-preview.8 280 11/5/2019
7.1.0-preview.7 274 11/4/2019
7.1.0-preview.6 272 11/1/2019
7.1.0-preview.5 292 10/31/2019
7.1.0-preview.4 293 10/30/2019
7.1.0-preview.3 266 10/26/2019
7.1.0-preview.2 272 10/25/2019
7.1.0-preview.1 278 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.