Skip to content

Conversation

@schungx
Copy link

@schungx schungx commented Mar 10, 2018

This PR enables log4net.Azure to compile as a .NET Standard 2.0 library.

Two things are not supported:

  1. LocationInfo.StackFrames doesn't seem to exist on the .NET Standard version of log4net.

  2. CloudConfigurationManager from Microsoft.Azure.ConfigurationManager is for .NET Framework only and not supported under .NET Standard.

Beware it is a little hacky... Microsoft.WindowsAzure.Storage has changed most access methods into async, and so there are a bunch of .Wait(TIMEOUT) sprinkled all over the place. Poor programming practice, but works.

Note: Sorry I messed up some files' formatting -- VS auto-formatted them when I saved.

@schungx schungx mentioned this pull request Mar 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant