{"action":"opened","issue":{"url":"https://api.github.com/repos/Chavoshi/EnterpriseLibrary.NetCore/issues/16","repository_url":"https://api.github.com/repos/Chavoshi/EnterpriseLibrary.NetCore","labels_url":"https://api.github.com/repos/Chavoshi/EnterpriseLibrary.NetCore/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/Chavoshi/EnterpriseLibrary.NetCore/issues/16/comments","events_url":"https://api.github.com/repos/Chavoshi/EnterpriseLibrary.NetCore/issues/16/events","html_url":"https://github.com/Chavoshi/EnterpriseLibrary.NetCore/issues/16","id":318128248,"number":16,"title":"Logging block throwing error when referenced from a .Net Standard project and running under FullFramework (Test project)","user":{"login":"gdemartini","id":11699436,"avatar_url":"https://avatars1.githubusercontent.com/u/11699436?v=4","gravatar_id":"","url":"https://api.github.com/users/gdemartini","html_url":"https://github.com/gdemartini","followers_url":"https://api.github.com/users/gdemartini/followers","following_url":"https://api.github.com/users/gdemartini/following{/other_user}","gists_url":"https://api.github.com/users/gdemartini/gists{/gist_id}","starred_url":"https://api.github.com/users/gdemartini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdemartini/subscriptions","organizations_url":"https://api.github.com/users/gdemartini/orgs","repos_url":"https://api.github.com/users/gdemartini/repos","events_url":"https://api.github.com/users/gdemartini/events{/privacy}","received_events_url":"https://api.github.com/users/gdemartini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-26T17:34:06Z","updated_at":"2018-04-26T17:34:06Z","closed_at":null,"author_association":"NONE","body":"- I have a .Net Standard library (MyLib.Common) which references the Logging block.\r\n- I have a test project (Target Framework: .NET Framework 4.6.2) which references MyLib.Common\r\n\r\nWhen I run tests, I get the following error:\r\nSystem.TypeInitializationException: System.TypeInitializationException: The type initializer for 'Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter' threw an exception. ---> System.TypeLoadException: Type 'Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry' in assembly 'Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' has method 'OnSerializing' with an incorrect signature for the serialization attribute that it is decorated with.. \r\n\r\nAcording to this documented issue (https://github.com/dotnet/standard/issues/300) the problem is in the .net full framework itself, so the recommendation is to not use the OnSerial* attributes."}}
{"actor":{"display_login":"gdemartini"}}