RaspberryPi.Net
RaspberryPi.Net copied to clipboard
xbuild error
Hi! There is a little problem with xbuild. Compiling "xbuild RaspberryPiDotNet.csproj" isn't working with the Mono Version 3.2.8.0, XBuild Engine 12.0
Error message:
Project "/home/pi/dev/RaspberryPi.Net/RaspberryPiDotNet/RaspberryPiDotNet.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
Target CoreCompile:
Tool /usr/bin/dmcs execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/RaspberryPiDotNet.dll DS1620.cs GPIO.cs GPIODebug.cs GPIODirection.cs GPIOFile.cs GPIOMem.cs GPIOPins.cs GPIOResistor.cs MCP3008.cs MicroLiquidCrystal/RaspPiGPIOFileLcdTransferProvider.cs MicroLiquidCrystal/RaspPiGPIOMemLcdTransferProvider.cs MicroLiquidCrystal/ILcdTransferProvider.cs MicroLiquidCrystal/Lcd.cs PinState.cs Properties/AssemblyInfo.cs TM16XX/TM1638.cs TM16XX/TM16XX.cs /target:library /define:"DEBUG;TRACE" /doc:bin/Debug/RaspberryPiDotNet.XML /reference:/usr/lib/mono/4.0/System.dll /reference:/usr/lib/mono/4.0/System.Core.dll /warn:4
DS1620.cs(92,42): error CS0589: Internal compiler error during parsingSystem.FormatException: Input string was not in the correct format
at System.Double.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] in
Build FAILED. Errors:
/home/pi/dev/RaspberryPi.Net/RaspberryPiDotNet/RaspberryPiDotNet.csproj (default targets) -> /usr/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->
DS1620.cs(92,42): error CS0589: Internal compiler error during parsingSystem.FormatException: Input string was not in the correct format
0 Warning(s)
1 Error(s)
Based on the following tutorial: http://stackoverflow.com/questions/23639895/include-bcm2853-lib-on-raspberry-pi
First guess: You are German:
I had my locale set to de_DE.UTF8
and had the same problem;
Changing it to en_GB.UTF-8
plus logout/login fixed it for me.
I guess because German writes float values (i.e. 3.154) with a comma (i.e. 3,154) which seems to have an influence on the mono compiler;
If that does not help: Update your firmare by:
sudo rpi-update
sudo reboot
After a reboot the compile should work!
@Sunshadow99 , please, download my fork on https://github.com/brunoamancio/RaspberryPi.Net and try it. Here is the change: https://github.com/brunoamancio/RaspberryPi.Net/commit/c20fb112207868f00140087596846435b5217d64
Don't forget to tell the results.
Obs.: I think we could just set the whole application's culture to invariable culture, so it wouldn't care about the user's configurations.
I had in this project a string parsing-problem and the Project from brunoamancio worked!
Hello, i get 31 Error. The Step from brunoamncio doesn't work...
It's says everytime that it has an error in CS0518 'The predefined type [...] is not defined or imported'.