"Roslyn" analyzer for Visual Studio 2017. Finds usages of DateTime.Now, DateTime.UtcNow, DateTimeOffset.Now, DateTimeOffset.UtcNow and marks them as error. Very simple extension, have no idea why I need to make it a long description. Created to see how it works with analyzers, licensed under MIT. Optionally supports code-fix to convert DateTime.Now to DateTimeOffset.Now. P.S. Has bug on VS2015 (probably the dependencies). Cannot really try it, since I'm not using the VS2015 anymore. The one with 2015 support is here. |