Repository navigation
Restore generated assets in Microsoft.CodeAnalysis.NetAnalyzers packages - #55899
Conversation
|
Azure Pipelines: 3 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1b62fb4f-3669-466b-bbcf-d0384626535c
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
Adjusts the Microsoft.CodeAnalysis.NetAnalyzers package packing process so generated assets (rulesets, editorconfigs, global analyzer configs, and buildTransitive integration files) are included reliably by moving their inclusion from evaluation-time globs to a target that runs after generation and before NuGet collects package files.
Changes:
- Removed evaluation-time
<None Include=".../**/*" Pack="true" ... />entries that could be empty during a clean pack. - Added
IncludeGeneratedFilesInPackagetarget to inject the generated files into the packing item graph afterGenerateAnalyzerConfigAndDocumentationFilesruns.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1b62fb4f-3669-466b-bbcf-d0384626535c
ViktorHofer
left a comment
There was a problem hiding this comment.
We noticed the same just last week. Thanks for fixing. Interestingly this did work before so something must have changed.
|
/backport to release/11.0.1xx |
|
/backport to release/10.0.1xx |
|
/backport to release/10.0.4xx |
|
Started backporting to |
|
Started backporting to |
|
Started backporting to |
Clean one-pass packing evaluated generated-file globs before their outputs existed, omitting rulesets, editorconfigs, global analyzer configs, and
buildTransitiveintegration files. This also prevented package-provided analyzers such as CA1416 from receiving required MSBuild properties.