Configuring ASP.NET Core Application Settings

Configuring ASP.NET Core Application Settings

ReviewCoreASPHosting.NET | Best and cheap ASP.NET Core 2.0 hosting. With all of the controversy around project configurations within .NET Core, one thing that has managed to be consistently JSON-based has been the use of application settings configuration files in this new world. While JSON does read incredibly easily, it can very quickly become muddled if you are storing large, complex objects consisting of nested objects and arrays, each with multiple properties of different types, and so on. Thankfully, you have options. And I don't mean options like going to use XML; I mean that there's a specific framework designed to tackle issues like these and make working with these potentially cumbersome configurations much more manageable. Enter the Options Framework The Options framework is a very basic framework that is specifically designed to handle accessing and configuring POCO settings within .NET Core, and it simply couldn't be easier to work with. Now let's say that you have a configuration file for your application that looks...
Read More
Adding MVC to ASP.NET Core web application

Adding MVC to ASP.NET Core web application

ReviewCoreASPHosting.NET | Best and cheap ASP.NET MVC core hosting. This article refers to an earlier version of the .NET Core SDK and project.json which Microsoft has deprecated in favour of a revamped .csproj file. Now let’s add MVC to the picture. Start off by modifying project.json to require the MVC packages. { "version": "1.0.0-*", "buildOptions": { "debugType": "portable", "emitEntryPoint": true }, "dependencies": {}, "frameworks": { "netcoreapp1.0": { "dependencies": { "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0" }, "Microsoft.AspNetCore.Server.Kestrel": "1.0.0", "Microsoft.AspNetCore.Mvc": "1.0.0" }, "imports": "dnxcore50" } ...
Read More