{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/724","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/724/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/724/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/724/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/724","id":81628767,"number":724,"title":"FindTypeMapFor ignores type parameters when src/dest objects passed","user":{"login":"cherrydev","id":1072616,"avatar_url":"https://avatars.githubusercontent.com/u/1072616?v=3","gravatar_id":"","url":"https://api.github.com/users/cherrydev","html_url":"https://github.com/cherrydev","followers_url":"https://api.github.com/users/cherrydev/followers","following_url":"https://api.github.com/users/cherrydev/following{/other_user}","gists_url":"https://api.github.com/users/cherrydev/gists{/gist_id}","starred_url":"https://api.github.com/users/cherrydev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherrydev/subscriptions","organizations_url":"https://api.github.com/users/cherrydev/orgs","repos_url":"https://api.github.com/users/cherrydev/repos","events_url":"https://api.github.com/users/cherrydev/events{/privacy}","received_events_url":"https://api.github.com/users/cherrydev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/labels/Improvement","name":"Improvement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/milestones/11","html_url":"https://github.com/AutoMapper/AutoMapper/milestones/4.0.0","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/milestones/11/labels","id":900207,"number":11,"title":"4.0.0","description":"New config model\r\nDeleting the Formatters completely\r\netc","creator":{"login":"jbogard","id":104498,"avatar_url":"https://avatars.githubusercontent.com/u/104498?v=3","gravatar_id":"","url":"https://api.github.com/users/jbogard","html_url":"https://github.com/jbogard","followers_url":"https://api.github.com/users/jbogard/followers","following_url":"https://api.github.com/users/jbogard/following{/other_user}","gists_url":"https://api.github.com/users/jbogard/gists{/gist_id}","starred_url":"https://api.github.com/users/jbogard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbogard/subscriptions","organizations_url":"https://api.github.com/users/jbogard/orgs","repos_url":"https://api.github.com/users/jbogard/repos","events_url":"https://api.github.com/users/jbogard/events{/privacy}","received_events_url":"https://api.github.com/users/jbogard/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":5,"state":"open","created_at":"2014-12-11T09:25:43Z","updated_at":"2015-05-29T16:55:43Z","due_on":null,"closed_at":null},"comments":31,"created_at":"2015-05-27T21:17:29Z","updated_at":"2015-05-29T19:08:01Z","closed_at":null,"body":"The offending line is line 345 of ConfigurationStore (at commit c986717, at least)\r\n\r\n`return FindTypeMapFor(source?.GetType() ?? sourceType, destination?.GetType() ?? destinationType);`\r\n\r\nI'm not sure what was actually intended, so I don't have a PR for you, but obviously discarding `sourceType` and `destinationType` when `source` and `destination` are designated is not what's intended, since it means that when calling `Mapper.Map<TSource,TDest>(srcObject)` TSource is ignored and effectively replaced with `srcObject.GetType()`.  This breaks when, for example, you're using EF dynamic proxies and `typeof(TSource) != srcObject.GetType()`."},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/106905292","html_url":"https://github.com/AutoMapper/AutoMapper/issues/724#issuecomment-106905292","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/724","id":106905292,"user":{"login":"jbogard","id":104498,"avatar_url":"https://avatars.githubusercontent.com/u/104498?v=3","gravatar_id":"","url":"https://api.github.com/users/jbogard","html_url":"https://github.com/jbogard","followers_url":"https://api.github.com/users/jbogard/followers","following_url":"https://api.github.com/users/jbogard/following{/other_user}","gists_url":"https://api.github.com/users/jbogard/gists{/gist_id}","starred_url":"https://api.github.com/users/jbogard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbogard/subscriptions","organizations_url":"https://api.github.com/users/jbogard/orgs","repos_url":"https://api.github.com/users/jbogard/repos","events_url":"https://api.github.com/users/jbogard/events{/privacy}","received_events_url":"https://api.github.com/users/jbogard/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T19:08:01Z","updated_at":"2015-05-29T19:08:01Z","body":"Yep, that's how I got the unit tests to work, since it's a regular .csproj. It's just readonly though, you can't add new files to the .Net4 one (it totally screws it up)"}}