Skip to content

InterceptsLocationAttribute with line and character arguments are no longer supported #148

Open

Description

@DavidZidar

Describe the bug

I just updated to the latest .NET SDK, version 9.0.200, and I'm getting these new warnings from code generated by DapperAOT.

warning CS9270: 'InterceptsLocationAttribute(string, int, int)' is not supported. Move to 'InterceptableLocation'-based generation of these attributes instead. (dotnet/roslyn#72133)

It seems that the attribute constructor that takes a line number and a character position is deprecated in favor of a new API that's described in the issue linked in the warning above.

To Reproduce
Use DapperAOT version 1.0.45 with .NET SDK version 9.0.200.

Expected behavior
Preferably no warnings.

Additional context
I believe the existing code is still working but will break eventually so this should be fixed.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions