我有两个项目,一个1.1.0 ASP.NET Core项目和一个对4.5.2项目的引用。
我想将值从appsettings.json文件获取到我的4.5.2项目中。appsettings.json文件在核心项目中。
在我的4.5.2项目中尝试了一下,没有运气:
var mailServer = ConfigurationManager.AppSettings["MailServer"];
Run Code Online (Sandbox Code Playgroud)
如何从4.5.2项目中访问值?
我想使用GIF或SVG动画为ionic 4应用程序创建自定义加载微调器。没有用HTML填充的“ content”属性,因此在这种情况下如何用自定义SVG或GIF替换气泡SVG?
async presentLoading() {
const loading = await this.loadingController.create({
spinner: 'bubbles',
duration: 2000
});
return await loading.present();
}
Run Code Online (Sandbox Code Playgroud)