-
Notifications
You must be signed in to change notification settings - Fork 4
Getting started
To get started using dsc, you should first head to the releases page and grab the latest dsc release binaries. Next, unzip them and put them in a directory somewhere to your liking.
All you need now is some code to compile. You can find some simple examples on the examples page. The DSharp folder contains examples that highlight D#'s features, whereas the examples in the dsc folder are mainly concerned with demonstrating the use of platform-specific features and libraries.
The variables example example seems like a fair starting point for your further endeavors with D# and dsc.
VariablesExample.ds, the example's single source file, can easily be compiled to a .Net assembly by invoking dsc with:
dsc VariablesExample.ds
The folder also comes with a project, however, as this allows you to embed your preferences and build arguments in a single, pre-configured file. Compile that with:
dsc VariablesExample.dsproj
For a more detailed guide to compiling your source with dsc, take a look at the using dsc page.
If you want more D# examples, you can sneak a peek at Flame, Flame.Compiler, Flame.Syntax and Flame.DSharp, which are all written in D#.