JTrotta / RaspberrySharp

A .NET/Mono IO Library for Raspberry Pi This library is a complete refactoring of Raspberry-Sharp libraries, merged into one library and updated to RB3, CM3 and RB3+
MIT License
39 stars 20 forks source link

.Net 2.0 targeting #21

Open pmeloy opened 5 years ago

pmeloy commented 5 years ago

Never mind, just clued in that it wants .Net CORE 2. I never bothered with it before so the 2.0 didn't trigger anything.

When I load the project in VS2017 I get an error saying:

Severity Code Description Project File Line Suppression State Error The current .NET SDK does not support targeting .NET Standard 2.0. Either target .NET Standard 1.6 or lower, or use a version of the .NET SDK that supports .NET Standard 2.0. RaspberrySharp D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 126

I've downloaded and installed every SDK listed by the projects from 4.6.1 to 4.7.2. What am I missing?

JTrotta commented 5 years ago

You have to use .NET 4.6.2 or more, or .NetStandard 2.0

pmeloy commented 5 years ago

Pulled from github yesterday and it won't even load without 4.6.1, 4.6.2, 4.7.1, 4.7.2 and .NET Core 2.

Each project seems to have different requirements and won't play with higher versions.

Still, I managed to make everything happy write a components for the BMP180 and I'm working on ADC1015.

JTrotta commented 5 years ago

Strange, tomorrow will check.

pmeloy commented 5 years ago

Maybe it's my VS2017 settings? I get lots of reports of "e" not being declared but never used. I have that reporting turned off in VS2015 and haven't really used 2017 until now.