JIT调试器在使用源生成时不起作用

发布于 2025-01-25 05:37:58 字数 1030 浏览 2 评论 0原文

这是我第一次尝试创建一个问题,因此可以忍受。

我正在尝试将源生成器实施到我的解决方案中。我能够让项目以调试状态进行编译和工作(在经过一些错误的同时),但最终源生成器从未生成文件。请参阅下面:

连接调试器时我会遇到这些错误:

错误1

错误2

错误3

如果我没有附加到调试器,则不会显示弹出窗口,但是它不会生成文件。

当调试和让过程完成时:

结果

这是我的项目代码,以查看是否可以查看是否可以查看也许我做了一些错误的设置。

项目参考

“ rel =“ nofollow noreferrer”> gen project文件

我已经尝试过:

  • 维修视觉工作室
  • 维修(重新安装).NET SDK(.NET 472、48,Core 3.1和5.0)
  • 重新安装了程序文件中的dotnet文件夹中
  • 在Jetbrains Rider中运行同一项目(其中的错误说“ [21596] dotnet.exe中发生了一个未经手的例外”,带有类似的“可用debuggers”弹出窗口)

This is my first attempt at creating a question so bear with me.

I'm attempting to implement a source generator into my solution. I was able to get the project to compile and work at a debugging state (while going through some erros) but the source generator in the end never generated the files. Please see below:

I would get these errors when attaching the debugger:

Error 1

Error 2

Error 3

If I didn't attach to the debugger then the popup doesn't show up, however it doesn't generate the files.

And when debugging and letting the process finish:

Results

Here is my code for the project to see if maybe I did something wrong setting it up.

Project reference

Gen Project file

I've tried:

  • Repairing visual studio
  • Repairing (reinstalling) .net sdk (.net 472, 48, Core 3.1, and 5.0)
  • Reinstalling the dotnet folder in program files
  • Running the same project in Jetbrains Rider (The error on there said "An unhandled exception occured in [21596] dotnet.exe" with a similar "Available debuggers" popup window)

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文