Answers for "Difference between IHostingEnvironment and IWebHostEnvironment ?"

C#
0

Difference between IHostingEnvironment and IWebHostEnvironment ?

The IHostingEnvironment is an interface for . Net Core 2.0 and 
IWebHostEnvironment has replaced IHostingEnvironment in . Net Core 3.0. 
Both these interfaces need to be injected as dependency in the Controller 
and then later used throughout the Controller.
  
Both these interfaces have two properties.
1. WebRootPath – Path of the www folder.
2. ContentRootPath – Path of the root folder which contains all the Application files.
Posted by: Guest on February-10-2022

Code answers related to "Difference between IHostingEnvironment and IWebHostEnvironment ?"

C# Answers by Framework

Browse Popular Code Answers by Language