Skip to content

5.0 .NET Core compatibility

Compare
Choose a tag to compare
@lorddev lorddev released this 03 Apr 20:55
· 67 commits to master since this release

To install Devlord.Utilities, run the following command in the Package Manager Console

PM> Install-Package Devlord.Utilities
  • Incremented major version to 5.0 because of breaking changes in .NET Core

    • There is a question of whether these features are truly deprecated or just haven't been finished yet, because I've seen reports that some of the features will be added in .NET Core 2.0.
  • Changed service timers due to the .NET System.Timers.Timer class having been deprecated. I tried to keep the public interface intact,
    as well as the behavior. But you'll need to change "ElapsedEventArgs" to "ServiceTimerState" in your events.

      private static void LoopedElapsed(object sender, ElapsedEventArgs e)
      {
          Console.WriteLine("Test message ONE");
      }
      // to
      private static void LoopedElapsed(object sender, ServiceTimerState e)
      {
          Console.WriteLine("Test message ONE");
      }
    
  • Added MailKit dependency when using this library in .NET Core.

  • Breaking changes to Mailbot class: Use GetInstance(string smtpServer) instead of the Instance property. Throttles are now smtp-server-specific.

  • Changed WebClient to HttpClient, made RssConvert async.

  • Absorbed Encryptamajig since it didn't appear to be maintained and I needed it updated to .NET Core.

  • Note that RestRouteHandler is only compatible with .NET v4.5.1. If you are using this feature, make sure you have the right target set.

  • Had some trouble with future-compatibility for app.config, so we've converted to the newer "ConfigurationBuilder" method. To set your settings for
    items in Devlord.Utilities.Settings, copy devlord.utilities.json into your project, and set "Copy to Output Directory" to either
    "Copy if newer" or "Copy always".

  • DRMapper.ParseRecord<T> overload with rowIndex has been deprecated.