RSML in C#¶
RSML for C# is a great and solid choice for learning to use RSML programmatically, as it has the best support.
Installation¶
RSML can be installed in 2 ways: package reference (via NuGet) or project reference (building RSML inside your solution).
Package Reference¶
Installing RSML via its NuGet package is the recommended way to install RSML, as it guarantees stability.
To install RSML via your project file, simply ass the following line to an <ItemGroup>
.
If you use Visual Studio, you can instead run the following line in the builtin Package Manager Console.
Visual Studio comes with a NuGet Package Installation GUI.
- Select Browse and search RSML.
Search RSML on NuGet.
- Choose the correct version and click Install.
Install RSML.
- If prompted to accept a license, do so.
Project Reference (Not recommended)¶
If, for whatever reason, you need the latest nightly updates, you may also add the RSML project to your solution.
Please keep in mind that not all nightly updates are guaranteed to be bug-free or stable. Nightly updates are also not documented, only stable versions are.
cd YourSolution/YourProject/
# Assuming you've got the RSML project at YourSolution/RSML/
dotnet add reference ../RSML/RSML.csproj
- If your solution is included in a
git
repository already, consider using Git Submodules instead.