microsoft / microsoft/PSRule

Update engine version generator to use IIncrementalGenerator

Open
#3,158 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

.NET ci-quality
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.