ProductivityExtensionMethods 1.0.0-beta.5

This is a prerelease version of ProductivityExtensionMethods.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package ProductivityExtensionMethods --version 1.0.0-beta.5
NuGet\Install-Package ProductivityExtensionMethods -Version 1.0.0-beta.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ProductivityExtensionMethods" Version="1.0.0-beta.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ProductivityExtensionMethods --version 1.0.0-beta.5
#r "nuget: ProductivityExtensionMethods, 1.0.0-beta.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ProductivityExtensionMethods as a Cake Addin
#addin nuget:?package=ProductivityExtensionMethods&version=1.0.0-beta.5&prerelease

// Install ProductivityExtensionMethods as a Cake Tool
#tool nuget:?package=ProductivityExtensionMethods&version=1.0.0-beta.5&prerelease

How to use

After referencing the package, a T4 Template file is created in your project that will generate a C# .cs file. Modify top section of the file to enable certain category of extension methods. Nuget will take care of future updates. Ignore the generated file in your source control.

Visit FAQ page for more details.

Important Notes

  • The generated class is in C#, so it only works in C# projects.
  • The C# code contains C# 7.3 syntax in some categories. Make sure it is enabled in your project by going to Project Properties → Build → Advanced...
  • The C# code contains Nullable Reference Type feature available in C# 8. It will only be generated if Visual Studio 2019 is used. No way to opt-out at this point.
  • This package is tested on latest versions of Visual Studio 2019/2017.

Known Issues

  • If the nuget package is removed for any reason then immediately added back, no .tt file will be added to the project. This is a bug in Visual Studio/Nuget. The initialization script for the nuget package is not run the second time until Visual Studio is restarted.
  • If package is added to one project, then immediately to another, the second project doesn't get the .tt file. This is due to the same bug as above and VS should be restarted between adds.
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0-beta.7 629 2/21/2020
1.0.0-beta.6 252 12/8/2019
1.0.0-beta.5 275 11/24/2019
1.0.0-beta.4 281 10/11/2019
1.0.0-beta.3 369 10/11/2019
1.0.0-beta.2 372 10/9/2019
1.0.0-beta.1 380 10/8/2019

- In version 1.0.0-beta.5, support for Visual Studio 2017 was added and tested. Roslyn syntax analyzers are used to detect and mark the nullable-ref specific syntax, so later on the T4 template can remove them if necessary.
- All C# 8.0 syntax was removed for lower version compatibility. Only Nullable Reference Types are used from C# 8.0.
- License changed from GPL to Unlicense
- IGrouping.ToDictionary now returns a dictionary of arrays rather than IEnumerables.
- Added sorted list functionality to IList using AddSorted and BinarySearch extension methods. You can treat an IList as a sorted list.
- The string extension methods now have ReadOnlySpan<char> counterparts.
- Bug fixes and improvements.