Getting Started
Welcome to Beef
Beef is primarily an IDE-based experience, but command-line building is also supported. Your first step is to install Beef or build from source. Currenly binaries are only available for Windows, and the Beef IDE is only available for Windows.
Platforms Supported
Binaries are available for Windows, and building from source is supported on Windows, Linux, and macOS. Cross-compilation is in development for targets including Android and iOS.
Creating an IDE-based “Hello World”
- Run the Beef IDE
- Create a new project by selecting File/New/Project and create a new Console project named “Hello”
- Right click on the new project, select “New Class…”, and enter “Program” as the name.
- Enter the following text in the newly-created file
using System;
namespace Hello
{
class Program
{
static void Main()
{
Console.WriteLine("Hello, world!");
}
}
}
- Press F5 to compile and run
Creating an command-line based “Hello World”
- Create a new directory named “Hello” somewhere
- “cd” into that directory
- Run “BeefBuild -new” to initialize a new workspace and project in that directory
- Create a “src/Program.bf” text file and paste in the contents from the box above
- Run “BeefBuild -run” to compile and execute