Update engine version generator to use IIncrementalGenerator
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 474
- Forks
- 65
- Avg merge
- 22h 25m
- Merged PRs (30d)
- 26
Description
Error: /home/runner/work/PSRule/PSRule/src/PSRule.MSBuild/Generators/EngineVersionGenerator.cs(20,9): error RS1035: The symbol 'GeneratorExecutionContext' is banned for use by analyzers: Non-incremental source generators should not be used, implement IIncrementalGenerator instead [/home/runner/work/PSRule/PSRule/src/PSRule.MSBuild/PSRule.MSBuild.csproj]
Then upgrade Microsoft.CodeAnalysis.Common to latest version and remove ignore from dependabot.yml.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/PSRule.MSBuild/Generators/EngineVersionGenerator.cs and inspect how it currently uses GeneratorExecutionContext. Then review dependabot.yml for the ignored Microsoft.CodeAnalysis.Common update. Done means the generator uses IIncrementalGenerator, the dependency is upgraded, and the ignore entry is removed without the reported analyzer error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100