Skip to content

Generate InAttribute for .NET Standard 1.0 #97

Open
@AlexRadch

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions