首页 > 解决方案 > 在 appsettings.production.json 中,排除部分是什么?

问题描述

在 VS 2019 的 aspnet core 3.1 中,我创建了 appsettings.Productions.json。

为什么包含以下内容,这是什么意思?

"exclude": [
    "**/bin",
    "**/bower_components",
    "**/jspm_packages",
    "**/node_modules",
    "**/obj",
    "**/platforms"
]

标签: asp.net-coreappsettings

解决方案


为什么包含以下内容,这是什么意思?

它用于排除文件夹列表,让语言服务知道哪些文件可以安全忽略。

应将输出位置以及非项目文件夹(例如node_modulesbin)添加到此设置中。


推荐阅读