namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false,Inherited = false)]
public class ExtensionAttribute : Attribute{}
}
Since the project is still compiled with the 3.x or 4.x compiler the extensions are properly added.