Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();
Source by blog.bitscry.com #
 
PREVIOUS NEXT
Tagged: #appsettings #core
ADD COMMENT
Topic
Name
5+6 =