{"action":"created","issue":{"url":"https://api.github.com/repos/neuecc/MessagePack-CSharp/issues/260","repository_url":"https://api.github.com/repos/neuecc/MessagePack-CSharp","labels_url":"https://api.github.com/repos/neuecc/MessagePack-CSharp/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/neuecc/MessagePack-CSharp/issues/260/comments","events_url":"https://api.github.com/repos/neuecc/MessagePack-CSharp/issues/260/events","html_url":"https://github.com/neuecc/MessagePack-CSharp/issues/260","id":325235272,"node_id":"MDU6SXNzdWUzMjUyMzUyNzI=","number":260,"title":"Empty MessagePackGenerated.cs when generated with mpc.exe (ToolsVersion=15)","user":{"login":"JakubHolovsky","id":4558405,"node_id":"MDQ6VXNlcjQ1NTg0MDU=","avatar_url":"https://avatars0.githubusercontent.com/u/4558405?v=4","gravatar_id":"","url":"https://api.github.com/users/JakubHolovsky","html_url":"https://github.com/JakubHolovsky","followers_url":"https://api.github.com/users/JakubHolovsky/followers","following_url":"https://api.github.com/users/JakubHolovsky/following{/other_user}","gists_url":"https://api.github.com/users/JakubHolovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/JakubHolovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakubHolovsky/subscriptions","organizations_url":"https://api.github.com/users/JakubHolovsky/orgs","repos_url":"https://api.github.com/users/JakubHolovsky/repos","events_url":"https://api.github.com/users/JakubHolovsky/events{/privacy}","received_events_url":"https://api.github.com/users/JakubHolovsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-05-22T10:35:29Z","updated_at":"2018-12-14T02:39:01Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hello,\r\n\r\nwe have been successfully using you library for over a few months, however today I switched from packages.config to package reference in csproj file. That change resulted in ToolsVersion=15.\r\n\r\nYou claim that version 15 is supported on your site (I am using the very latest version of your mpc.exe tool (the quickfix version currently)). However the generated file is empty. The log does not contain any extra information that might be helpful.\r\n\r\n```\r\n#pragma warning disable 618\r\n#pragma warning disable 612\r\n#pragma warning disable 414\r\n#pragma warning disable 168\r\n\r\nnamespace MessagePack.Resolvers\r\n{\r\n    using System;\r\n    using MessagePack;\r\n\r\n    public class GeneratedResolver : global::MessagePack.IFormatterResolver\r\n    {\r\n        public static readonly global::MessagePack.IFormatterResolver Instance = new GeneratedResolver();\r\n\r\n        GeneratedResolver()\r\n        {\r\n\r\n        }\r\n\r\n        public global::MessagePack.Formatters.IMessagePackFormatter<T> GetFormatter<T>()\r\n        {\r\n            return FormatterCache<T>.formatter;\r\n        }\r\n\r\n        static class FormatterCache<T>\r\n        {\r\n            public static readonly global::MessagePack.Formatters.IMessagePackFormatter<T> formatter;\r\n\r\n            static FormatterCache()\r\n            {\r\n                var f = GeneratedResolverGetFormatterHelper.GetFormatter(typeof(T));\r\n                if (f != null)\r\n                {\r\n                    formatter = (global::MessagePack.Formatters.IMessagePackFormatter<T>)f;\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n    internal static class GeneratedResolverGetFormatterHelper\r\n    {\r\n        static readonly global::System.Collections.Generic.Dictionary<Type, int> lookup;\r\n\r\n        static GeneratedResolverGetFormatterHelper()\r\n        {\r\n            lookup = new global::System.Collections.Generic.Dictionary<Type, int>(0)\r\n            {\r\n            };\r\n        }\r\n\r\n        internal static object GetFormatter(Type t)\r\n        {\r\n            int key;\r\n            if (!lookup.TryGetValue(t, out key)) return null;\r\n\r\n            switch (key)\r\n            {\r\n                default: return null;\r\n            }\r\n        }\r\n    }\r\n}\r\n\r\n#pragma warning disable 168\r\n#pragma warning restore 414\r\n#pragma warning restore 618\r\n#pragma warning restore 612\r\n```\r\n\r\nThe console log is like this:\r\n\r\n> E:\\Dev\\mpc>mpc.exe -i \"E:\\Dev\\moovshack\\MoovShack.Api.Entities\\MoovShack.Api.Ent\r\n> ities.csproj\" -o \"E:\\Dev\\moovshack\\MoovShack.Core.NetStandard\\MessagePackGenerat\r\n> ed.cs\" -m\r\n> Project Compilation Start:E:\\Dev\\moovshack\\MoovShack.Api.Entities\\MoovShack.Api.\r\n> Entities.csproj\r\n> Project Compilation Complete:00:00:05.1846443\r\n> \r\n> Method Collect Start\r\n> Method Collect Complete:00:00:00.0019707\r\n> Output Generation Start\r\n> [Out]E:\\Dev\\moovshack\\MoovShack.Core.NetStandard\\MessagePackGenerated.cs\r\n> String Generation Complete:00:00:00.0148961"},"comment":{"url":"https://api.github.com/repos/neuecc/MessagePack-CSharp/issues/comments/447193571","html_url":"https://github.com/neuecc/MessagePack-CSharp/issues/260#issuecomment-447193571","issue_url":"https://api.github.com/repos/neuecc/MessagePack-CSharp/issues/260","id":447193571,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzE5MzU3MQ==","user":{"login":"uncleniner","id":33974362,"node_id":"MDQ6VXNlcjMzOTc0MzYy","avatar_url":"https://avatars0.githubusercontent.com/u/33974362?v=4","gravatar_id":"","url":"https://api.github.com/users/uncleniner","html_url":"https://github.com/uncleniner","followers_url":"https://api.github.com/users/uncleniner/followers","following_url":"https://api.github.com/users/uncleniner/following{/other_user}","gists_url":"https://api.github.com/users/uncleniner/gists{/gist_id}","starred_url":"https://api.github.com/users/uncleniner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uncleniner/subscriptions","organizations_url":"https://api.github.com/users/uncleniner/orgs","repos_url":"https://api.github.com/users/uncleniner/repos","events_url":"https://api.github.com/users/uncleniner/events{/privacy}","received_events_url":"https://api.github.com/users/uncleniner/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T02:39:01Z","updated_at":"2018-12-14T02:39:01Z","author_association":"NONE","body":"@neuecc  where can get the new mpc.exe... thanks"}}
{"actor":{"display_login":"uncleniner"}}