Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

.net core read configuration from appsettings.json

var AppName = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build().GetSection("AppSettings")["APP_Name"];
Comment

get appsettings from app.config c# .net core

"AssetsFolder": {
    "UserFolder": "/assets/images/Users/",
    "EventFolder": "/assets/images/Events/",
    "CoursesFolder": "/assets/images/Courses/",
    "filesFolder": "/assets/images/files/"
  },

string pathUser = _configuration["AssetsFolder:UserFolder"].ToString();
Comment

PREVIOUS NEXT
Code Example
Csharp :: switch statement c# example 
Csharp :: c# arrow 
Csharp :: vb.net get date minus one day 
Csharp :: finally c# code 
Csharp :: wpf listview with columns binding 
Csharp :: ? operator 
Csharp :: shut game unity 
Csharp :: unity scroll rect to bottom 
Csharp :: set the page that FormsAuthentication.RedirectFromLoginPage redirects to 
Csharp :: c# entity framework get all records from table 
Csharp :: C# int array initial values 
Csharp :: string c# 
Csharp :: return stream from file c# 
Csharp :: add qtwidgets to cmake file 
Csharp :: C# loop through the registry searching for keys containing 
Csharp :: c# list remove by index 
Csharp :: onmousedown() not working unity 
Csharp :: audio unity 
Csharp :: c# compare dateTime with string 
Csharp :: How to make a simple console select screen using C# ReadKey 
Csharp :: listview thread error 
Csharp :: batchblock timeout 
Csharp :: null-conditional operators c# 
Csharp :: c# loop 2 time tables 
Csharp :: c# Case insensitive Contains(string) 
Csharp :: unity subtract class 
Csharp :: dictionary all key where value c# 
Csharp :: c# tell if a class is a child or the class itself 
Csharp :: visual studio console.writeline not showing in output window 
Csharp :: array in c# 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =