Kephas.Scripting.Lua 11.1.0-dev.3

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.3
                    
NuGet\Install-Package Kephas.Scripting.Lua -Version 11.1.0-dev.3
                    
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.3" />
                    
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-dev.3" />
                    
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-dev.3
                    
#r "nuget: Kephas.Scripting.Lua, 11.1.0-dev.3"
                    
#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.
#addin nuget:?package=Kephas.Scripting.Lua&version=11.1.0-dev.3&prerelease
                    
Install Kephas.Scripting.Lua as a Cake Addin
#tool nuget:?package=Kephas.Scripting.Lua&version=11.1.0-dev.3&prerelease
                    
Install Kephas.Scripting.Lua 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. 
.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 650 4/13/2022
11.1.0-dev.4 171 4/6/2022
11.1.0-dev.3 152 3/30/2022
11.1.0-dev.2 149 3/23/2022
11.1.0-dev.1 147 3/23/2022
11.0.0 489 3/11/2022
11.0.0-dev.7 148 3/7/2022
11.0.0-dev.6 149 2/28/2022
11.0.0-dev.5 144 2/26/2022
11.0.0-dev.4 153 2/24/2022
11.0.0-dev.3 156 2/23/2022
11.0.0-dev.2 154 2/18/2022
11.0.0-dev.1 164 2/7/2022
10.3.0 519 1/18/2022
10.2.0 849 12/3/2021
10.1.0 4,950 11/23/2021
10.1.0-dev.7 214 11/17/2021
10.1.0-dev.6 186 11/16/2021
10.1.0-dev.5 194 11/10/2021
10.1.0-dev.4 189 11/8/2021
10.1.0-dev.3 167 11/8/2021
10.1.0-dev.2 186 11/4/2021
10.1.0-dev.1 188 11/3/2021
10.0.1 443 10/16/2021
10.0.0 390 10/13/2021
10.0.0-dev.4 177 10/13/2021
10.0.0-dev.3 191 10/11/2021
10.0.0-dev.2 253 10/8/2021
9.3.4 407 8/25/2021
9.3.3 404 8/25/2021
9.3.2 421 8/24/2021
9.3.1 429 8/12/2021
9.3.0 440 8/12/2021
9.2.0 401 6/17/2021
9.1.0 398 6/17/2021
9.1.0-dev.8 230 5/26/2021
9.1.0-dev.7 215 5/17/2021
9.1.0-dev.6 214 4/28/2021
9.1.0-dev.5 234 4/23/2021
9.1.0-dev.4 219 4/21/2021
9.1.0-dev.3 227 4/17/2021
9.1.0-dev.2 218 4/12/2021
9.1.0-dev.1 223 4/9/2021
9.0.5 424 3/31/2021
9.0.4 463 3/23/2021
9.0.3 450 3/20/2021
9.0.1 396 3/18/2021
9.0.0 441 3/17/2021
9.0.0-dev.4 229 3/4/2021
9.0.0-dev.3 238 3/1/2021
9.0.0-dev.2 256 2/22/2021
8.4.0 531 11/11/2020
8.3.0 512 10/28/2020
8.2.0 535 10/16/2020
8.1.0 583 9/23/2020
8.0.0 515 7/1/2020
8.0.0-dev.44 327 6/25/2020
8.0.0-dev.43 320 6/23/2020
8.0.0-dev.42 347 6/22/2020
8.0.0-dev.41 344 6/18/2020
8.0.0-dev.40 308 6/18/2020
8.0.0-dev.39 324 6/15/2020
8.0.0-dev.38 439 6/14/2020
8.0.0-dev.37 301 6/13/2020
8.0.0-dev.36 348 6/13/2020
8.0.0-dev.35 292 6/12/2020
8.0.0-dev.34 331 6/12/2020
8.0.0-dev.33 374 6/10/2020
8.0.0-dev.32 305 6/1/2020
8.0.0-dev.31 338 6/1/2020
8.0.0-dev.30 410 5/30/2020
8.0.0-dev.28 326 5/28/2020
8.0.0-dev.27 329 5/15/2020
8.0.0-dev.26 308 5/14/2020
8.0.0-dev.25 317 5/14/2020
8.0.0-dev.24 315 5/13/2020
8.0.0-dev.23 317 5/13/2020
8.0.0-dev.22 317 5/13/2020
8.0.0-dev.21 316 5/12/2020
8.0.0-dev.20 321 5/12/2020
8.0.0-dev.19 315 5/7/2020
8.0.0-dev.18 326 5/7/2020
8.0.0-dev.17 309 5/6/2020
8.0.0-dev.16 321 5/6/2020
8.0.0-dev.15 312 5/5/2020
8.0.0-dev.14 309 5/5/2020
8.0.0-dev.13 327 5/4/2020
7.6.0-dev.13 336 5/1/2020
7.6.0-dev.12 337 4/30/2020
7.6.0-dev.11 312 4/28/2020
7.6.0-dev.10 305 4/27/2020
7.6.0-dev.9 307 4/24/2020
7.6.0-dev.8 308 4/22/2020
7.6.0-dev.7 295 4/15/2020
7.6.0-dev.6 302 4/15/2020
7.6.0-dev.5 302 4/15/2020
7.6.0-dev.4 414 4/11/2020
7.6.0-dev.3 300 4/10/2020
7.6.0-dev.2 283 4/10/2020
7.6.0-dev.1 370 4/8/2020
7.5.2 573 3/20/2020
7.5.1 542 3/12/2020
7.5.0 513 3/10/2020
7.5.0-dev.18 323 3/5/2020
7.5.0-dev.17 324 3/5/2020
7.5.0-dev.16 350 3/4/2020
7.5.0-dev.15 283 3/3/2020
7.5.0-dev.14 296 3/3/2020
7.5.0-dev.13 288 2/29/2020
7.5.0-dev.12 411 2/29/2020
7.5.0-dev.10 276 2/25/2020
7.5.0-dev.9 330 2/20/2020
7.5.0-dev.8 351 2/18/2020
7.5.0-dev.7 293 2/18/2020
7.5.0-dev.6 319 2/14/2020
7.5.0-dev.5 333 2/12/2020
7.5.0-dev.4 297 2/11/2020
7.5.0-dev.3 271 2/11/2020
7.5.0-dev.2 425 2/8/2020
7.5.0-dev.1 318 2/7/2020
7.4.2 527 2/5/2020
7.4.1 587 2/3/2020
7.4.0 622 1/31/2020
7.4.0-dev.4 363 1/31/2020
7.4.0-dev.3 350 1/29/2020
7.4.0-dev.2 302 1/28/2020
7.3.1 549 1/21/2020
7.3.1-preview.7 299 1/21/2020
7.3.1-preview.1 333 1/20/2020
7.3.0 504 1/19/2020
7.2.6 602 1/18/2020
7.2.5 577 12/19/2019
7.2.4 543 12/19/2019
7.2.3 558 12/16/2019
7.2.2 572 12/9/2019
7.2.1 572 12/4/2019
7.2.0 529 11/26/2019
7.2.0-preview.10 307 11/20/2019
7.2.0-preview.9 299 11/19/2019
7.2.0-preview.8 305 11/18/2019
7.2.0-preview.6 319 11/14/2019
7.2.0-preview.5 304 11/14/2019
7.2.0-preview.4 301 11/14/2019
7.2.0-preview.2 310 11/11/2019
7.2.0-preview.1 301 11/9/2019
7.1.0 589 11/6/2019
7.1.0-preview.8 314 11/5/2019
7.1.0-preview.7 311 11/4/2019
7.1.0-preview.6 308 11/1/2019
7.1.0-preview.5 327 10/31/2019
7.1.0-preview.4 327 10/30/2019
7.1.0-preview.3 301 10/26/2019
7.1.0-preview.2 307 10/25/2019
7.1.0-preview.1 312 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.