VBAndCs / sVB-Small-Visual-Basic

Small Visual Basic (sVB) is an educational programming language, created by Eng. Mohammad Hamdy as an evolved version of Microsoft Small Basic (SB). It is meant to be easier and more powerful at the same time, to introduce programming basics to kids and beginners of any age, provided that they can use the English keyboard on the Windows OS.
Other
222 stars 16 forks source link

can we compile to an exe? if not how to share programs without copy/paste the listing? #34

Closed uturnsystems closed 1 year ago

VBAndCs commented 1 year ago

From the sVB docs PDF file (page 163),which is installed with language: Generating the executable file: You can run the active project by clicking the run button (from the toolbar of the designer or the code editor) or by pressing F5. This will make sVB compile the project to be able to run it. Compilation means to convert the code you wrote to the Microsoft Intermediate Language (or in short MSIL or IL), which is saved in a file that has the name of the project with the exe extension (for example: "Hello sVB.exe"). This file is saved in the bin folder inside the project folder. sVB will also copy to the bin folder all files necessary to make the exe file work correctly, like the xaml files of all the project forms, any txt, image, sound or style files existing in the project folder, the SmallVisualBasicLibrary.dll file and any other external library file that your project use. You can select the exe file and press Enter or double-click it, to make the .NET Framework compile the IL language to the machine language suitable to your operating system, and run the application. So, this exe file is the executable file of your application, and the whole bin folder is considered your application, and you can copy it to any place on your file system, or distribute it to other PC's that have the .NET Framework 4.8, and it will work correctly.