RaspberryPi.Net
RaspberryPi.Net copied to clipboard
RaspberryPiDotNet xbuild with 31 errors
Hello guys,
I want to write code for the RaspberryPi in C# with Mono. That works pretty well.
But I need also to work with the GPIO-Pins.
When I want to build the RaspberryPiDotNet-Project, it throws me 31 errors, like this one:
CSC: error CS0518: The predefined type `System.RuntimeTypeHandle' is not defined or imported
Every error is the same, but instead of 'System.RuntimeTypeHandle' are everytime different things.
Which version of Mono are you using? Not always a very recent one that comes by default on many distros.
This one:
Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1) <
I ran into the same Problem today and fixed it by defining the TargetFrameworkVersion:
xbuild /p:TargetFrameworkVersion=v4.0 RaspberryPiDotNet.csproj