.net - 我不能再调试我的 dotnet 项目了。发生无法加载源错误

标签 .net linux .net-core vscode-debugger

每当我尝试调试时,我都会收到此消息。

Could not load source 'z:\home\shaffaaf\Code\*****\DotnetProject\Services\FileManager\S3FileManager.cs': Incorrect format of 'source' message..

dotnet --list-sdks 的输出:

2.2.105 [/opt/dotnet/sdk]

我已经多次尝试 dotnet clean & build,结果没有差异。

新项目运行良好,该项目的先前版本运行良好。但我看不出任何代码更改如何导致这种行为。

最佳答案

<!--    <PackageReference Include="Microsoft.Net.Compilers" Version="2.8.2" />-->

^^ 我的 csproj 上有这一行。不记得我为什么添加它。删除后一切恢复正常。

关于.net - 我不能再调试我的 dotnet 项目了。发生无法加载源错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56830114/

相关文章:

c# - 将 C# Map 集合传递给 Axapta 代码

linux - grep -R 每个文件一个结果

docker - VS2017 : Adding environment variables to docker container for debugging

linux - Bash - 删除不以数字结尾的行

linux - Ubuntu 的 file-roller 问题 5010. "Cannot open display"

c# - Azure 见解请求日志

c# - Blazor 处理来自 Web Api 的响应中的错误

.net - 不区分大小写的字符串与 linq-to-sql 和 linq-to-objects 进行比较

C# 奇怪的 WPF 组合框行为

.net - 将 PowerBuilder 数据窗口显示为 PDF 的网页