- 
                Notifications
    You must be signed in to change notification settings 
- Fork 33
Installation
MMALSharp targets .NET Standard 2.0 and is compatible with Mono 5.4/.NET Core 2.0 or greater platforms.
The easiest way to get up and running with Mono is to install Raspbian Buster which has Mono 5.18 in the repositories,
allowing you to do a sudo apt-get install mono-complete straight out of the box. Additionally, you can install the latest version by following the instructions on the Mono website.
Once Mono is installed, you can either build the source code yourself (see the Building from Source section below), or grab the latest pre-release build from Myget.
.NET Core is currently available on the Raspberry Pi 2, 3 and 4 boards.
Please note: The install instructions for .NET Core have changed since support was added and are subject to change in the future. The instructions below are up to date as of 11/07/2017. If you're having any issues running MMALSharp on .NET Core, please raise an issue and I'll look into it for you.
- 
Follow the instructions here on how to create a self-contained application for use on your Raspberry Pi. 
- 
In the root of your newly created application, create a NuGet.configfile as seen below:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <solution>
    <add key="disableSourceControlIntegration" value="true" />
  </solution>
  <packageSources>
    <!--To inherit the global NuGet package sources remove the <clear/> line below -->
    <clear />
    <add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />    
  </packageSources>
</configuration>
- In CMD run dotnet restoreat the application root to import the MMALSharp NuGet package
- Apply one of the examples to your Program.csfile in your new .NET Core app, adding any namespaces as required.
- In CMD run dotnet buildto build the application
- Run dotnet publish -r linux-arm- this will create a new directory calledpublishwithin the debug directory of your new application.
- Copy the contents of that folder over to your Raspberry Pi
- You should now have a self-contained application that can be ran on your Raspberry Pi. You will probably need to run sudo chmod +x ./APPLICATIONNAMEto make it an executable file.
If you wish to build from source, follow the below steps:
- Clone the repository by running git clone https://github.com/techyian/MMALSharp.git.
- Open the solution in Visual Studio 2017.
- Restore NuGet packages & build the solution. Alternatively, you can run the dotnet restoreanddotnet buildcommands via the .NET Core SDK.