Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.
/ MinMVC Public archive

Trying to create a minimum mvc project that looks like a Core project

Notifications You must be signed in to change notification settings

dmelinosky/MinMVC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimum ASP.Net project

In branch 1 I'm removing all but the essentials to get a 4.7.2 project compiling.

Dependency Injection

In branch 2 I'm adding Dependency Injection to the 4.7.2 project.

Helpful Links

How to on Stack Overflow

Configuration

In branch 3 I'm adding Configuration with json files and environment varirables. In branch 4 I'm adding configuration with User Secrets.

Helpful Links

Original inspiration from Docker on windows book

New in ASP.Net 4.7.1

User Secrets in 4.7

Net Core in Legacy Projects

MSDN Docs - Configuration Builders

Logging

In branch 5 I'm attempting to add the Logging extension to the 4.7.2 project.

Helpful Links

MSDN Docs - Logging in .NET Core and ASP.NET Core

Potentially helpful

Application Insights

In branch 6 I'm attempting to add Applicaiton Insights overall and to the ILogger interface.

Helpful Links

Question on stack overflow

Provider on Nuget

MSDN Docs - AppInsights for ILogger

AppInsights Docs in Azure Monitoring

Trouble along the way

Problems and Solutions

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'.

Solution

New cool things I learned along the way

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.

About

Trying to create a minimum mvc project that looks like a Core project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published