Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RestEase.SourceGenerators does not play well with .editorconfig/StyleCop

See original GitHub issue

Added RestEase.SourceGenerators to my .NET 5 project, and the project no longer builds:


Editor Config:

Maybe we need // <auto-generated /> on the generated file or something? I am new with the Source Generators.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

canton7commented, Dec 17, 2020

Should be fixed in 1.5.2

canton7commented, Dec 17, 2020

In case it’s not clear from the README, you can uninstall the source generator package and just use RestEase to work around this for now: you’ll get any errors at runtime instead of compile time, but the functionality is the same.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use editorconfig and remove Stylecop.Analyzers ...
The StyleCop analyzers add some features that editorconfig doesn't support, as well as the ability to enforce style rules at build time.
Read more >
Visual Studio editorconfig and code analysis is frustrating
In recent years I used ruleset files for code analysis, configured via a project's Properties -> Code Analysis tab.
Read more >
Modern StyleCop alternative? Advice appreciated. : r/dotnet
We are needing to enforce some very basic style rules in a set of DotNet 6 projects. This is not something we have...
Read more >
EditorConfig versus analyzers - Visual Studio (Windows)
EditorConfig files cannot be used to configure legacy analysis, whereas rule sets can. Code analysis in CI builds. Does .NET Compiler Platform-based code ......
Read more >
Use StyleCop styles | JetBrains Rider Documentation
To apply StyleCop rules, JetBrains Rider relies on its own features and settings, which do not always map directly onto StyleCop rules:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found