Linux中的ASP.NET Core Environment变量冒号 [英] ASP.NET Core Environment variable colon in Linux
本文介绍了Linux中的ASP.NET Core Environment变量冒号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在ASP.NET Core中,通过环境变量嵌套配置通常是通过冒号语法完成的:
In ASP.NET Core nested configuration via environment variables is typically done via colon syntax:
MySettings:SomeSetting=MyNewValue
您如何在Linux中做到这一点? export
命令拒绝冒号?
例如:
How do you do this in Linux? The export
command rejects the colon?
eg:
export MySettings:SomeSetting=MyNewValue
错误
bash: export: `MySettings:SomeSetting=MyNewValue': not a valid identifier
推荐答案
查看全文