In branch 1 I'm removing all but the essentials to get a 4.7.2 project compiling.
In branch 2 I'm adding Dependency Injection to the 4.7.2 project.
In branch 3 I'm adding Configuration with json files and environment varirables. In branch 4 I'm adding configuration with User Secrets.
Original inspiration from Docker on windows book
MSDN Docs - Configuration Builders
In branch 5 I'm attempting to add the Logging extension to the 4.7.2 project.
MSDN Docs - Logging in .NET Core and ASP.NET Core
In branch 6 I'm attempting to add Applicaiton Insights overall and to the ILogger interface.
MSDN Docs - AppInsights for ILogger
AppInsights Docs in Azure Monitoring
CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
web.config binding redirects
- Remove all the dependantAssembly nodes from the web.config file.
- Rebuild the application
- All warnings about required binding redirects will show up in output
- Switch to the Error List view
- Double click the warning item referencing the required redirects.
- Answer Yes to the modal about adding the required redirects.
- Rebuild and all warnings are gone.