{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenRIAServices/TestIssues/issues/143","labels_url":"https://api.github.com/repos/OpenRIAServices/TestIssues/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/OpenRIAServices/TestIssues/issues/143/comments","events_url":"https://api.github.com/repos/OpenRIAServices/TestIssues/issues/143/events","html_url":"https://github.com/OpenRIAServices/TestIssues/issues/143","id":127303146,"number":143,"title":"CLient code generator does not take assembly aliasing into account","user":{"login":"STAH","id":2418242,"avatar_url":"https://avatars.githubusercontent.com/u/2418242?v=3","gravatar_id":"","url":"https://api.github.com/users/STAH","html_url":"https://github.com/STAH","followers_url":"https://api.github.com/users/STAH/followers","following_url":"https://api.github.com/users/STAH/following{/other_user}","gists_url":"https://api.github.com/users/STAH/gists{/gist_id}","starred_url":"https://api.github.com/users/STAH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STAH/subscriptions","organizations_url":"https://api.github.com/users/STAH/orgs","repos_url":"https://api.github.com/users/STAH/repos","events_url":"https://api.github.com/users/STAH/events{/privacy}","received_events_url":"https://api.github.com/users/STAH/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenRIAServices/TestIssues/labels/CodePlex","name":"CodePlex","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-18T20:15:46Z","updated_at":"2016-01-18T20:15:46Z","closed_at":null,"body":"<sub>This issue was imported from [CodePlex](http://openriaservices.codeplex.com/workitem/22)</sub>\r\n\r\n**[MdeJ](https://github.com/MdeJ)** <sup>wrote 2013-12-23 at 15:47</sup>\r\nGiven   \r\n\r\n- a type my.domain.model.A that is defined in a portable class library L\r\n- a Silverlight client C that references L and uses aliasing to insert my.domain.model.A in a separate root name space ([http://msdn.microsoft.com/en-us/library/ms173212.aspx](http://msdn.microsoft.com/en-us/library/ms173212.aspx)) Foo::my.domain.model.A\r\n- a RIA services domain service that exposes my.domain.model.A to C\r\n\r\nThe RIA services codegen will die with an error:   \r\nC:\\Program Files (x86)\\MSBuild\\Microsoft\\Silverlight\\v5.0\\Microsoft.Ria.Client.targets(303,5): error : The entity type 'my.domain.model..A' already exists in another assembly. Entity types cannot be defined in multiple assemblies.  \r\n  \r\nI have the following two suggestions:  \r\n\r\n1. Let the code generator only check for existence of generated types in the root name space it is targeting\r\n2. (optionally) allow a developer to specify the root name space that the code generator should target\r\n\r\nThis will give a developer more control over the way that RIA services generates code in case there are naming conflicts."}}