Small Basic Forum
Writing extensions - ? - Printable Version

+- Small Basic Forum (https://litdev.uk/mybb)
+-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1)
+--- Forum: Extensions (https://litdev.uk/mybb/forumdisplay.php?fid=3)
+--- Thread: Writing extensions - ? (/showthread.php?tid=311)



Writing extensions - ? - Yumda - 04-19-2025

Hi there:

Is there an updated guide for writing SB extension?  My son knows abit of C#, and when we follow the instruction guide on how to write extension for SB using visual c# 2010 the message keeps on popping up that the .net fram work we are targeting is 3.5 but the smallbasic .DLL reference is for .NET 4.5 .  Is there any new tutorial available or what people is using to write the extension? 

Regards

YUMDA


RE: Writing extensions - ? - Scout - 04-19-2025

Hi Yumda,
this is information from litdev's homepage:


The extensions are written in C# and use the .Net 3.5 framework for versions of Small Basic up to 1.0.  Small Basic version 1.1 onwards and its extensions require .Net 4.5 which is available for Vista onwards and pre-installed on Windows 8 onwards. 

Currently using .Net 4.8.  If required, you can download .NET Framework 4.8 runtime from official MS site.

I haven't found any more recent documentation for creating SB extensions.
The existing one should be sufficient.

However, the target framework in the project properties must be set to ".NET Framework 4.5" or ".NET Framework 4.8."

If they don't appear in the selection, they must be downloaded first.


RE: Writing extensions - ? - z-s - 04-19-2025

Because of heavy workload of VS I use sharpdeveloper with . Net 4.8


RE: Writing extensions - ? - Yumda - 04-19-2025

Do you mean sharpdevelop v5.1?


RE: Writing extensions - ? - z-s - 04-20-2025

Yes but 5.1 only support till. Net4.5
there is unofficial build which can compile . Net 4.8
https://github.com/mgeee35/SharpDevelop-5.2.1
you will be able to use libs for. Net4. 8 and can compile to .Net4.8
but will use csharp5 which lack new features of .Net4.8 csharp.


RE: Writing extensions - ? - Yumda - 04-20-2025

Massive file, will pass along to my kid.

Thanks!!


RE: Writing extensions - ? - litdev - 04-21-2025

I did write a simple SharpDevelop getting started writing extension (for ZS I think originally).

https://litdev.uk/mybb/showthread.php?tid=49&pid=379#pid379