Skip to content

Suppress CS8981 in generated protos #1107

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

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Suppress CS8981 in generated protos #1107

merged 1 commit into from
Jan 19, 2024

Conversation

xPaw
Copy link
Contributor

@xPaw xPaw commented Nov 2, 2023

Fixes #1106

@mgravell
Copy link
Member

mgravell commented Nov 2, 2023

appreciate the assist - minor omission from the restore part, but in principle: +1

@mgravell
Copy link
Member

mgravell commented Nov 2, 2023

test failures are related to this change; I can deal with that if you're too busy - I appreciate what you have done

@xPaw
Copy link
Contributor Author

xPaw commented Nov 2, 2023

Missed these files somehow, should be good now.

EDIT: Not sure what this EverythingProtoLangver3 test failure is about.

@mgravell
Copy link
Member

The problem is 2 of:

warning CS1691: '8981' is not a valid warning number

Basically, when using down-level compilers, the compiler has no knowledge of that one; I'll merge as-is and apply a fix afterwards; appreciated!

@mgravell mgravell merged commit f9a8abe into protobuf-net:main Jan 19, 2024
mgravell added a commit that referenced this pull request Jan 19, 2024
mgravell added a commit that referenced this pull request Jan 19, 2024
* dignostic CS8981 doesn't exist (as 8981 without prefix) in down-level compilers

cross-ref #1107

* reorder to maintain output
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

Successfully merging this pull request may close these issues.

CS8981 (The type name only contains lower-cased ascii characters.) when generating C# code with names=original
2 participants