{"action":"opened","issue":{"url":"https://api.github.com/repos/martinjw/dbschemareader/issues/20","repository_url":"https://api.github.com/repos/martinjw/dbschemareader","labels_url":"https://api.github.com/repos/martinjw/dbschemareader/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/martinjw/dbschemareader/issues/20/comments","events_url":"https://api.github.com/repos/martinjw/dbschemareader/issues/20/events","html_url":"https://github.com/martinjw/dbschemareader/issues/20","id":192052246,"number":20,"title":"CodeGen.CodeWriter.Execute() fails when executed as part of NuGet package","user":{"login":"MachineCognitis","id":22506293,"avatar_url":"https://avatars.githubusercontent.com/u/22506293?v=3","gravatar_id":"","url":"https://api.github.com/users/MachineCognitis","html_url":"https://github.com/MachineCognitis","followers_url":"https://api.github.com/users/MachineCognitis/followers","following_url":"https://api.github.com/users/MachineCognitis/following{/other_user}","gists_url":"https://api.github.com/users/MachineCognitis/gists{/gist_id}","starred_url":"https://api.github.com/users/MachineCognitis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MachineCognitis/subscriptions","organizations_url":"https://api.github.com/users/MachineCognitis/orgs","repos_url":"https://api.github.com/users/MachineCognitis/repos","events_url":"https://api.github.com/users/MachineCognitis/events{/privacy}","received_events_url":"https://api.github.com/users/MachineCognitis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-28T16:32:20Z","updated_at":"2016-11-28T16:32:20Z","closed_at":null,"body":"Using the DatabaseSchemaReader NuGet package 2.1.1, I read a schema and tried to use the code writer but got a null reference exception in the ProjectWriter constructor. Instead of using the NuGet package, I downloaded the source code of version 2.1.1 in an attempt to locate the error. However, using the source code, the code writer works perfectly! I think the problem with the NuGet package has something to do with the LoadProjectXml() function of the ProjectWriter class. I suspect that the GetManifestResourceStream() function returns null, and the ProjectWriter constructor does not check whether the return XDocument is null.\r\n\r\nI am not sure what the fix would be. It looks like a security issue when trying to retrieve the embedded resource."}}
{"actor":{"display_login":"MachineCognitis"}}