{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/bond/issues/68","labels_url":"https://api.github.com/repos/Microsoft/bond/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/bond/issues/68/comments","events_url":"https://api.github.com/repos/Microsoft/bond/issues/68/events","html_url":"https://github.com/Microsoft/bond/issues/68","id":94493261,"number":68,"title":"Serialization fails is some cases when there are multiple type aliases","user":{"login":"kylemc","id":1087654,"avatar_url":"https://avatars.githubusercontent.com/u/1087654?v=3","gravatar_id":"","url":"https://api.github.com/users/kylemc","html_url":"https://github.com/kylemc","followers_url":"https://api.github.com/users/kylemc/followers","following_url":"https://api.github.com/users/kylemc/following{/other_user}","gists_url":"https://api.github.com/users/kylemc/gists{/gist_id}","starred_url":"https://api.github.com/users/kylemc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylemc/subscriptions","organizations_url":"https://api.github.com/users/kylemc/orgs","repos_url":"https://api.github.com/users/kylemc/repos","events_url":"https://api.github.com/users/kylemc/events{/privacy}","received_events_url":"https://api.github.com/users/kylemc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-11T17:30:56Z","updated_at":"2015-07-22T17:44:13Z","closed_at":null,"body":"*[Update]\r\nI got codegen and samples working with two --using=\"type-alias=generated-code-type\" statements in the options. Unfortunately, serialization still fails with the exception below.*\r\n\r\nI'm trying to author an IDL with multiple aliases. The IDL parses fine, but the compiler doesn't seem to account for more than one kvp in the --using parameter.\r\n\r\nExpected:\r\n  --using=\"datetime=System.DateTime;guid=System.Guid\" works\r\n\r\n    [global::Bond.Id(2), global::Bond.Type(typeof(ulong)), global::Bond.Required]\r\n    public System.DateTime timestampUtc { get; set; }\r\n\r\nActual:\r\n  --using=\"datetime=System.DateTime;guid=System.Guid\"\r\n\r\nresults in generated code like the following:\r\n\r\n    [global::Bond.Id(2), global::Bond.Type(typeof(ulong)), global::Bond.Required]\r\n    public System.DateTime,guid=System.Guid timestampUtc { get; set; }\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/bond/issues/comments/123804473","html_url":"https://github.com/Microsoft/bond/issues/68#issuecomment-123804473","issue_url":"https://api.github.com/repos/Microsoft/bond/issues/68","id":123804473,"user":{"login":"sapek","id":449129,"avatar_url":"https://avatars.githubusercontent.com/u/449129?v=3","gravatar_id":"","url":"https://api.github.com/users/sapek","html_url":"https://github.com/sapek","followers_url":"https://api.github.com/users/sapek/followers","following_url":"https://api.github.com/users/sapek/following{/other_user}","gists_url":"https://api.github.com/users/sapek/gists{/gist_id}","starred_url":"https://api.github.com/users/sapek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sapek/subscriptions","organizations_url":"https://api.github.com/users/sapek/orgs","repos_url":"https://api.github.com/users/sapek/repos","events_url":"https://api.github.com/users/sapek/events{/privacy}","received_events_url":"https://api.github.com/users/sapek/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T17:44:13Z","updated_at":"2015-07-22T17:44:13Z","body":"Multiple aliases are definitely supported, e.g. [see](https://github.com/Microsoft/bond/blob/9634ef5a8ba61e874fb0057d29e9c1201e03028b/cs/test/core/Aliases.bond#L3-L8) [the](https://github.com/Microsoft/bond/blob/9634ef5a8ba61e874fb0057d29e9c1201e03028b/cs/test/core/TypeAliasTests.cs#L9-L37) [tests](https://github.com/Microsoft/bond/blob/9634ef5a8ba61e874fb0057d29e9c1201e03028b/cs/test/core/Core.csproj#L53).\r\n\r\nIf you post link to your project I can take a look what might be the problem."}}