.net 如何在运行C#项目时禁用VS Code中的加载警告?

sxissh06  于 2023-05-19  发布在  .NET
关注(0)|答案(1)|浏览(120)

当我在VS Code中的.NET项目上按F5键时,会出现许多黄色警告行。
下面是其中的几行:

Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.9/Microsoft.Extensions.Options.ConfigurationExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.9/Microsoft.Extensions.Logging.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.9/Microsoft.Extensions.Logging.Debug.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.9/Microsoft.Extensions.Logging.EventSource.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.9/Microsoft.AspNetCore.Http.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.9/Microsoft.Extensions.Features.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

如何禁用它?

6vl6ewon

6vl6ewon1#

在**.vscode**文件夹中找到 * launch.json * 配置文件

... "configurations" :[ {...} ] ...

增加以下项目:

"logging": {"moduleLoad": false},

你现在应该有一个更干净的调试输出。

相关问题