且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在哪里存储将为Azure上托管的asp.net中的环境变量引用的JSON文件

更新时间:2023-02-15 17:25:20

如果您的json文件在发布时在项目中,则它将上传到 D:\ home \ site \ wwwroot \ xxx.json 代码>.您可以转到 https://yourwebname.scm.azurewebsites.net 进行查找.

If your json file is in project when publishing it, it will be uploaded to D:\home\site\wwwroot\xxx.json. You could go to https://yourwebname.scm.azurewebsites.net to find it.

因此,您可以在门户网站的 Application settings 中设置环境变量,如下所示:

So, you could set the environment variable in Application settings on portal as below: