VisualStudio中的插件RESMANPER CLT和RESARAPER之间的错误结果

发布于 2025-01-20 11:23:53 字数 293 浏览 2 评论 0原文

我的代码使用 VisualStudio 2022 插件 Resharper 版本 2021.3.4Resharper in CLT 2021.3.4 检查错误的结果完全不同。使用相同的文件 .DotSettings

IDE VisualStudio 2022 中没有错误,但使用 CLT 时有超过 2000 个错误。

我在 TeamCity 中检查了结果,它们与 CLT 匹配。

谁遇到过,告诉我如何解决这个问题...

The results of the check error in my code using VisualStudio 2022 plugin Resharper version 2021.3.4 and Resharper in CLT 2021.3.4 are completely different. Used the same file .DotSettings

There are no bugs in the IDE VisualStudio 2022, but using the CLT there are over 2000.

I checked the results in TeamCity and they match with CLT.

Who have encountered, tell me how to solve the problem...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小…红帽 2025-01-27 11:23:53

一年前,我遇到了一个非常相似的问题,并联系了Jetbrains的支持。我们来回走了很长时间,我从中获得了以下关键方面:

  • 存在一些现有问题,例如这个
  • 确保没有其他设置层(例如机器范围的配置)进入您的路并覆盖某些设置。
  • 启用在整个解决方案的分析(SWA),因为它更接近R#CLT的作用。
  • 使用骑手时,整个情况变得更加模糊。例如,我必须启用文件|设置|编辑|检查设置| “启用计算昂贵的检查”
  • 显示出不同的结果,具体取决于使用的工具窗口。
    • 骑手
      • swa
      • 代码→检查代码
    • vs
      • swa
      • resharper→检查→解决方案中的代码问题

,我的钥匙是:达到100%同步VS和R#CLT是超级硬的,当骑手来临时,这会变得更加复杂发挥作用。几乎取之不尽的配置R#的选项使得无法回答您的一般问题。
我可以推荐的:尝试将问题减少到很小的解决方案,并与喷气盘接触。

I had a very similar issue almost a year ago and contacted the JetBrains support. We had a very long back and forth, from which I took the following key aspects:

  • There are some existing issues, for example this one.
  • Make sure that no other settings layer (e.g. machine-wide config) comes into your way and overrides certain settings.
  • Enable solution-wide analyses (SWA), as it comes closer to what R# CLT does.
  • The whole picture becomes even more fuzzy when using Rider. For example, I had to enable File | Settings | Editor | Inspection Settings | " Enable computationally expensive inspections"
  • There are different results shown, depending on the used tool window.
    • Rider
      • SWA
      • Code → Inspect Code
    • VS
      • SWA
      • ReSharper → Inspect → Code Issues in Solution

So my key take-away was: it is super-hard to reach a 100% sync of VS and R# CLT, which gets even more complex when Rider comes into play. The almost inexhaustible number of options to configure R# makes it impossible to answer your general question.
What I can recommend: try to reduce the problem to a very small solution and get in contact to JetBrains.

忆依然 2025-01-27 11:23:53

最后,这个问题在 JetBrains 的新版本 R# 2022.1.0 中得到了纠正(使用 Blazor 组件,使用扩展名 .razor 创建文件,R# 检查了这一点)不考虑VS)

这解决了我的问题

Finally this was corrected in the new version of R# 2022.1.0 at JetBrains (using the Blazor component, files were created with the extension .razor, which R# checks did not take into VS)

That solved my problem

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文