Visual studio code 为什么是appsettings;环境>;。dotnet core webapi中忽略json
我正在visual studio代码中调试dotnet core 3.1 webapi项目。我的项目中确实有一个内容不同的Visual studio code 为什么是appsettings;环境>;。dotnet core webapi中忽略json,visual-studio-code,asp.net-core-webapi,appsettings,Visual Studio Code,Asp.net Core Webapi,Appsettings,我正在visual studio代码中调试dotnet core 3.1 webapi项目。我的项目中确实有一个内容不同的appsettings.json和一个appsettings.Development.json 下面是在vs代码中点击F5时的调试配置。这可以在.vscode/launch.json的“配置”部分找到 { “名称”:“启动API”, “类型”:“coreclr”, “请求”:“启动”, “预启动任务”:“构建”, “程序”:“${workspaceFolder}/Comme
appsettings.json
和一个appsettings.Development.json
下面是在vs代码中点击F5时的调试配置。这可以在.vscode/launch.json的“配置”部分找到
{
“名称”:“启动API”,
“类型”:“coreclr”,
“请求”:“启动”,
“预启动任务”:“构建”,
“程序”:“${workspaceFolder}/CommercialPaper.API/bin/Debug/netcoreapp3.1/CommercialPaper.API.dll”,
“args”:[],
“cwd”:“${workspaceFolder}/CommercialPaper.API”,
“stopAtEntry”:false,
“环境”:{
“ASPNETCORE_环境”:“开发”
},
“sourceFileMap”:{
“/Views”:“${workspaceFolder}/Views”
}
}