Skip to content

Warnings from generated code when nullable-reference types are enabled #44

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

Open
huynhsontung opened this issue Apr 6, 2025 · 0 comments

Comments

@huynhsontung
Copy link

huynhsontung commented Apr 6, 2025

I am migrating from the legacy VS extension to the new ReswPlus source generator for a project with a nullable reference type enabled. On build, I got Cannot convert null literal to non-nullable reference type warnings in the generated code. I suspect the generated code does not support nullable-reference types. Many C# projects enforce nullable-reference checks to add extra safety when dealing with reference types, so having generated code to follow this convention is appreciated as well.

Warning in the build log: https://github.com/huynhsontung/Screenbox/actions/runs/14297107527/job/40065690346?pr=588#step:9:36917
Related PR: huynhsontung/Screenbox#588

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

No branches or pull requests

1 participant