我正在使用ASP.NETCore2.0构建自己的API应用程序。但我无法将连接字符串存储在appsettings.json中。下面是我在Startup.cs文件中的代码,connection变量保存连接字符串,但不知何故它总是空的: //Add connection to SQL Server Db in appsettings.js
在处理ASP.NETCore1.1.1项目时,我刚刚更新了Visual。在更新之前,我向Azure的连续交付非常顺利。现在,在部署后查看Web时,我收到了一个错误。它无法在根位置找到appsettings.json:
The configuration file 'appsettings.json' was not found and is not optionalThe physical path is 'D:\hom
我试着用as ASP.NETCore (.Net Framework)制作一个team services光盘环境。构建定义将压缩的工件与该网站结合起来。然后,在我的发行版配置中,我想更改我的appsettings.json属性的一些值,但是工件是压缩的,所以显然版本管理没有访问appsettings.json的权限--日志上写着Error: NO JSONfile matched with specific pattern: appsettings.json,正确的方