{"action":"opened","issue":{"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/2518","repository_url":"https://api.github.com/repos/xamarin/Xamarin.Forms","labels_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/2518/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/2518/comments","events_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/2518/events","html_url":"https://github.com/xamarin/Xamarin.Forms/issues/2518","id":316391163,"number":2518,"title":"When using XAML compilation, binding to command whose class definition is in external project generates an error","user":{"login":"ptsoccer","id":1102725,"avatar_url":"https://avatars1.githubusercontent.com/u/1102725?v=4","gravatar_id":"","url":"https://api.github.com/users/ptsoccer","html_url":"https://github.com/ptsoccer","followers_url":"https://api.github.com/users/ptsoccer/followers","following_url":"https://api.github.com/users/ptsoccer/following{/other_user}","gists_url":"https://api.github.com/users/ptsoccer/gists{/gist_id}","starred_url":"https://api.github.com/users/ptsoccer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptsoccer/subscriptions","organizations_url":"https://api.github.com/users/ptsoccer/orgs","repos_url":"https://api.github.com/users/ptsoccer/repos","events_url":"https://api.github.com/users/ptsoccer/events{/privacy}","received_events_url":"https://api.github.com/users/ptsoccer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-20T19:50:34Z","updated_at":"2018-04-20T19:50:34Z","closed_at":null,"author_association":"NONE","body":"### Description\r\nWhen using compile time data bindings, binding a button's command to a command whose class definition is in another project generates:\r\n\r\nMember '\\<class name>' is declared in another module and needs to be imported\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create two projects, one being a xamarin forms project and one being a .NET standard 2 project and have the xamarin forms project reference the .NET standard 2 project\r\n2. In the .NET standard project, create a view model class and implementation of ICommand. Have the view model have an instance of the ICommand implementation.\r\n3. Turn on XAML compilation in the xamarin forms project\r\n4. Create a button in the xamarin forms project and bind its command to the command property on the view model\r\n5. Compile the xamarin forms project\r\n\r\n### Expected Behavior\r\nThe project should compile successfully\r\n\r\n### Actual Behavior\r\nAn error is returned:\r\nMember 'ViewModel.DelegateCommand' is declared in another module and needs to be imported\r\n\r\n### Basic Information\r\n- Version with issue: 2.5.1 and 3.0-pre3\r\n\r\n### Reproduction Link\r\n[XamarinStaticBinding.zip](https://github.com/xamarin/Xamarin.Forms/files/1933455/XamarinStaticBinding.zip)"}}
{"actor":{"display_login":"ptsoccer"}}