Change to .NET Standard 2.0

This commit is contained in:
2019-07-29 20:24:18 -04:00
parent d60924049d
commit 5788a2335f
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<PropertyGroup>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>ChrisKaczor.HomeMonitor.Weather.Models</AssemblyName>
<RootNamespace>ChrisKaczor.HomeMonitor.Weather.Models</RootNamespace>
<Authors>Chris Kaczor</Authors>

View File

@@ -92,7 +92,7 @@ namespace ChrisKaczor.HomeMonitor.Weather.Models
var messageValues = messageParts.Select(m => m.Split('=')).ToDictionary(a => a[0], a => a[1]);
WindDirection = Enum.Parse<WindDirection>(messageValues[@"winddir"]);
WindDirection = (WindDirection) Enum.Parse(typeof(WindDirection), messageValues[@"winddir"]);
WindSpeed = decimal.Parse(messageValues[@"windspeedmph"]);
Humidity = decimal.Parse(messageValues[@"humidity"]);
HumidityTemperature = decimal.Parse(messageValues[@"tempH"]);