ThinBasic.NET
1.0.8
There is a newer version of this package available.
See the version list below for details.
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" />
<PackageReference Include="ThinBasic.NET" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=ThinBasic.NET&version=1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ThinBasic.NET
.Net Wrapper for ThinBasic Programming Language.
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 😃
| Product | Versions 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.
1.0.6