![]() |
ZSCmd Extension - 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: ZSCmd Extension (/showthread.php?tid=99) |
ZSCmd Extension - z-s - 07-01-2024 I Made A Small Extension For SmallBasic In SharpDevelop As My First Extension In CSharp. It Is ZSCmd Contain Only One Method For Execute Of Any Cmd Command. Here You Can Download It : https://www.mediafire.com/file/ftwbu27mvohhkoo/ZSCmd.zip/file I Will Be Very Grateful To Litdev If This Extension Will Be Added In Extension Manager. Here Is Sample Code To Try Code: result = ZSCmd.Execute("dir") RE: ZSCmd Extension - litdev - 07-01-2024 Nice job, I have a couple suggests. 1] Create a more generic name for the extension so you can add more objects to the same extension in the future, something like ZSExtension or just ZS, with an initial object ZSCmd. 2] All new objects you add should start with ZS, like FC and LD. 3] Make the namespace for all your extension objects the same name as the extension name, currently your namespace is 'SmallBasicExtension' 4] Manage the version number properly, extension manager uses this to see if an extension is out of date - your current version number is 1.0.8948.26889. I suggest the first 2 should be 1.2 (for SB version 1.2) then the next 2 for major and minor updates as you see fit. RE: ZSCmd Extension - z-s - 07-01-2024 How to manage version number?? RE: ZSCmd Extension - litdev - 07-01-2024 In SharpDevelop: Project->Project Options... Then Assembly Info tab, Then Assembly Version Then test by openning created dll in ILSpy or dotPeek |