Procedure to change the ASP.Net Core version in project.json file
If you observe the highlighted block of code which I give below and have commented, the commented block of codes are default framework configurations. To configure our required framework versions, we have to modify the default configuration setting, as highlighted below.
- {
- "dependencies": {
-
-
-
-
- ---------------
- ---------------
- ---------------
-
-
-
-
-
-
-
-
-
-
- "frameworks": {
- "net461": {}
- },
- ------------
- ------------
- ------------
- }
Screenshot for the reference is given below.
Procedure to change the default port number
We know that ASP.NET Core Application runs under Kestrel Server with default port number http://localhost:5000.
Screenshot for the reference is given below.
To change the default port number with our own host address or IP address, we have to register the configuration in Program.cs file, as shown below.