PolySharp icon indicating copy to clipboard operation
PolySharp copied to clipboard

Generate InAttribute for .NET Standard 1.0

Open AlexRadch opened this issue 4 months ago • 0 comments

Reproduction Steps

Can not compile the next code for .NET Standard 1.0 without InAttribute.

public static class Foo
{
    public static ref readonly object GetPinnableReference(this object bar) => throw new();
}

Expected Behavior

Successful compilation.

Actual Behavior

Next compiler error

Error CS0518 Predefined type 'System.Runtime.InteropServices.InAttribute' is not defined or imported (netstandard1.0)

System info

  • PolySharp NuGet version LAST STABLE
  • Operating system version Windows 10
  • Visual Studio version LAST STABLE

AlexRadch avatar Feb 10 '24 23:02 AlexRadch