ThinBasic.NET 1.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package ThinBasic.NET --version 1.0.8
                    
NuGet\Install-Package ThinBasic.NET -Version 1.0.8
                    
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="ThinBasic.NET" Version="1.0.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ThinBasic.NET" Version="1.0.8" />
                    
Directory.Packages.props
<PackageReference Include="ThinBasic.NET" />
                    
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 ThinBasic.NET --version 1.0.8
                    
#r "nuget: ThinBasic.NET, 1.0.8"
                    
#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 ThinBasic.NET@1.0.8
                    
#: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=ThinBasic.NET&version=1.0.8
                    
Install as a Cake Addin
#tool nuget:?package=ThinBasic.NET&version=1.0.8
                    
Install as a Cake Tool

ThinBasic.NET

.Net Wrapper for ThinBasic Programming Language.

GitHub Nuget Travis-Ci Codacy Badge

Environment

  • Windows 10 above (recommend)
  • ThinBasic 1.14
  • .NET 8 / 9 / 10 (Windows x86)

NuGet Installation

PM> Install-Package ThinBasic.NET

How to Build

Building requires Visual Studio 2026 Community and test under Windows 11.

Example

string scriptPath = @"Sample\test.tbasic";
string scriptBuffer = File.ReadAllText(scriptPath, Encoding.UTF8);

int bufferType = (int)Enums.BufferType.IsScript;
int callingProgram = (int)Enums.CallingProgram.GUI;

int hThinbasic = Thinbasic.Init(0, 0, "thinbasic");

if (hThinbasic != 0)
{
    Console.WriteLine("Init failed: " + Thinbasic.GetLastError());

    return;
}

// Optional: inject host constants before Run
Thinbasic.AddEquate("%HOST_EQ", string.Empty, 7, (int)Enums.EquateType.Number);

int result = Thinbasic.Run(hThinbasic, scriptBuffer, bufferType, 0, 0, 0, 0, callingProgram, 0);
int lastError = Thinbasic.GetLastError();
Thinbasic.Release(hThinbasic);

if (lastError != 0)
{
    Console.WriteLine("Script error: " + lastError);
}

License

Copyright (c) 2017-2026 Ji-Feng Tsai.
ThinBasic Copyright (c) Eros Olmi ThinBASIC Interpreter.
Code released under the MIT license.

TODO

  • More thinCore.dll APIs (parser / module helpers)
  • More examples

Donation

If this application help you reduce time to coding, you can give me a cup of coffee 😃

paypal

Paypal Me

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net9.0-windows7.0 is compatible.  net10.0-windows was computed.  net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0-windows7.0

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.
  • net9.0-windows7.0

    • No dependencies.

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
1.0.10 152 8/14/2026
1.0.9 123 8/7/2026
1.0.8 133 7/31/2026
1.0.7 212 12/4/2024
1.0.6 226 1/31/2024
1.0.5 524 11/9/2022
1.0.4 533 11/11/2021
1.0.3 511 5/27/2021
1.0.2 641 6/29/2020
1.0.1 621 6/29/2020
1.0.0 765 8/27/2019

1.0.6