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

Copy source files with .g.cs file extension #52

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

vsilvar
Copy link
Contributor

@vsilvar vsilvar commented Aug 27, 2023

While using the new source functionality, I noticed I was getting a few compiler warnings in the included source files.
This was mostly because I had a few strict rules that were different than the code style used in the project.

This will copy the files with a .g.cs file extension instead of .cs, causing them to be seen as auto-generated, which ensures consuming projects don't receive warnings regarding them.

This will allow files to be seen as auto-generated, ensuring consuming projects don't receive warnings for these files.
@lauraneto
Copy link

Hi @MarcosLopezC ,

Would be nice if you could take a look at this one.
I tried using the new PackageLightJsonIncludeSource option but ended up with 2000+ warnings due to my .editorconfig 🫣

Thanks! 🙂

@MarcosLopezC MarcosLopezC merged commit ad534c8 into MarcosLopezC:main Sep 6, 2023
@MarcosLopezC MarcosLopezC self-assigned this Sep 6, 2023
@MarcosLopezC
Copy link
Owner

Sorry that it took me a while to get to this. This change is now included in LightJson v0.5.3.

https://github.com/MarcosLopezC/LightJson/releases/tag/v0.5.3
https://www.nuget.org/packages/MarcosLopezC.LightJson/0.5.3

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

Successfully merging this pull request may close these issues.

3 participants