ClemensFischer / XAML-Map-Control

XAML Map Control Library
Microsoft Public License
204 stars 61 forks source link

NET452 support #94

Closed YiehraiS closed 1 year ago

YiehraiS commented 1 year ago

Could you add support of NET452. I understand that it is old version but some developers are still using it because of compatibility. E.g., I've done it for my local version of fork. There will be a little changes like:

#if NET452
   return Task.FromResult(0);
#else
   return Task.CompletedTask;
#endif

and

#if !NET452
   var pixelsPerDip = VisualTreeHelper.GetDpi(this).PixelsPerDip;
#endif

Thanks in advance!

ClemensFischer commented 1 year ago

.NET Framework versions before 4.6.2 will not be supported.