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

Add missing [GeneratedCode] attribute #4802

Merged
merged 3 commits into from
Dec 11, 2023
Merged

Add missing [GeneratedCode] attribute #4802

merged 3 commits into from
Dec 11, 2023

Conversation

geeknoid
Copy link
Member

@geeknoid geeknoid commented Dec 10, 2023

The logging code generator emits a static lambda. The lambda's containing function is annotated with the [GeneratedCode] attribute, but the lambda itself is not. The result is that code generators can get confused, considering the lambda as being user code.

This PR adds the [GeneratedCode] attribute to the lambda.

Microsoft Reviewers: Open in CodeFlow

@ghost ghost assigned geeknoid Dec 10, 2023
@geeknoid geeknoid enabled auto-merge (squash) December 10, 2023 18:45
scripts/Slngen.ps1 Outdated Show resolved Hide resolved
@ghost ghost added waiting-author-feedback 📭 The author of this issue needs to respond in order for us to continue investigating this issue. and removed waiting-author-feedback 📭 The author of this issue needs to respond in order for us to continue investigating this issue. labels Dec 10, 2023
Martin Taillefer added 2 commits December 11, 2023 06:25
The logging code generator emits a static lambda. The lambda's containing
function is annotated with the [GeneratedCode] attribute, but the lambda
itself is not. The result is that code generators can get confused,
considering the lambda as being user code.

This PR adds the [GeneratedCode] attribute to the lambda.
@geeknoid geeknoid merged commit f992f87 into main Dec 11, 2023
6 checks passed
@geeknoid geeknoid deleted the geeknoid/loggen branch December 11, 2023 22:24
@ghost ghost added this to the 8.1 milestone Dec 11, 2023
sebastienros added a commit that referenced this pull request Dec 18, 2023
* Address issue with legacy logger's calling ToString on the TState arguments. (#4798)

* Fix #4795

And while I was in the neighborhood, also addresses #4637

---------

Co-authored-by: Martin Taillefer <mataille@microsoft.com>
Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>

* Add missing [GeneratedCode] attribute (#4802)

The logging code generator emits a static lambda. The lambda's containing
function is annotated with the [GeneratedCode] attribute, but the lambda
itself is not. The result is that code generators can get confused,
considering the lambda as being user code.

This PR adds the [GeneratedCode] attribute to the lambda.

Co-authored-by: Martin Taillefer <mataille@microsoft.com>

* Add more information and sample to Http.Diagnostics Readme (#4808)

* Add more information and sample to Http.Diagnostics Readme

* Simplify first statement and adding using statements.

* Also add extra docs to xml docs

* Improve code coverage for M.E.Diagnostics.Testing (#4820)

---------

Co-authored-by: Martin Taillefer <geeknoid@users.noreply.github.com>
Co-authored-by: Martin Taillefer <mataille@microsoft.com>
Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>
Co-authored-by: Jose Perez Rodriguez <joperezr@microsoft.com>
Co-authored-by: Sébastien Ros <sebastienros@gmail.com>
@github-actions github-actions bot locked and limited conversation to collaborators Jan 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants