Getting started with .Net place .Net Core Note

1. Registration coding Encoding.RegisterProvider (CodePagesEncodingProvider.Instance);.. Otherwise thrown 'GB2312' is not a supported encoding name For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method 2. Run the program default netcoreapp2.1 same directory in the root path 3. xml configuration file compatible with legacy ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None); 4. inner exception thrown //e.InnerException.PrepareForRethrow (); // throw e.InnerException; ExceptionDispatchInfo .Capture (e.InnerException) .Throw (); 5.log4net interface changer string Repository = "NETCoreRepository"; var log4netRepository = log4net.LogManager.CreateRepository (this.Repository); log4net.Config.XmlConfigurator.ConfigureAndWatch (log4netRepository, file) ; log4net.Config.XmlConfigurator.Configure (log4netRepository, file); var log = log4net.LogManager.GetLogger (this.Repository, name)

Guess you like

Origin www.cnblogs.com/guanglin/p/11119723.html