Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DavidZidar opened this issue Feb 15, 2025 · 0 comments

Comments

@DavidZidar
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant