Skip to content

CallerArgumentExpression No Longer Working When Targeting net6.0 #291

Description

@msfreed

Targeting net6.0, as of v4.1.0 the optional parameterName is no longer available. This works in v4.0.1.

image

  • .NET SDK Version: net6.0

Steps to Reproduce:

  1. Create a net6.0 project
  2. Use extension NullOrWhiteSpace (for example)
public void MyMethod(string id)
{
    Guard.Against.NullOrWhiteSpace(id);
}

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions