{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/msbuild/issues/293","labels_url":"https://api.github.com/repos/Microsoft/msbuild/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/msbuild/issues/293/comments","events_url":"https://api.github.com/repos/Microsoft/msbuild/issues/293/events","html_url":"https://github.com/Microsoft/msbuild/pull/293","id":112074376,"number":293,"title":"Fix argument coercion in property functions","user":{"login":"dsplaisted","id":145043,"avatar_url":"https://avatars.githubusercontent.com/u/145043?v=3","gravatar_id":"","url":"https://api.github.com/users/dsplaisted","html_url":"https://github.com/dsplaisted","followers_url":"https://api.github.com/users/dsplaisted/followers","following_url":"https://api.github.com/users/dsplaisted/following{/other_user}","gists_url":"https://api.github.com/users/dsplaisted/gists{/gist_id}","starred_url":"https://api.github.com/users/dsplaisted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsplaisted/subscriptions","organizations_url":"https://api.github.com/users/dsplaisted/orgs","repos_url":"https://api.github.com/users/dsplaisted/repos","events_url":"https://api.github.com/users/dsplaisted/events{/privacy}","received_events_url":"https://api.github.com/users/dsplaisted/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/msbuild/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-19T05:27:52Z","updated_at":"2015-10-19T19:02:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Microsoft/msbuild/pulls/293","html_url":"https://github.com/Microsoft/msbuild/pull/293","diff_url":"https://github.com/Microsoft/msbuild/pull/293.diff","patch_url":"https://github.com/Microsoft/msbuild/pull/293.patch"},"body":"Fixes #281, and should also fix issues encountered trying to self-build or build corefx where property functions (such as those calling `String.TrimEnd()`) would fail.\r\n\r\nThe root cause of the issue was that in porting to .NET Core, I replaced a call to Type.GetMethod with logic that was more strict, requiring all argument types to be assignable to the parameter types, which didn't allow for argument coercion.  This change pulls in more of the reflection code from `RuntimeType` and `DefaultBinder` to more closely match full Framework MSBuild's behavior."},"comment":{"url":"https://api.github.com/repos/Microsoft/msbuild/issues/comments/149314178","html_url":"https://github.com/Microsoft/msbuild/pull/293#issuecomment-149314178","issue_url":"https://api.github.com/repos/Microsoft/msbuild/issues/293","id":149314178,"user":{"login":"dsplaisted","id":145043,"avatar_url":"https://avatars.githubusercontent.com/u/145043?v=3","gravatar_id":"","url":"https://api.github.com/users/dsplaisted","html_url":"https://github.com/dsplaisted","followers_url":"https://api.github.com/users/dsplaisted/followers","following_url":"https://api.github.com/users/dsplaisted/following{/other_user}","gists_url":"https://api.github.com/users/dsplaisted/gists{/gist_id}","starred_url":"https://api.github.com/users/dsplaisted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsplaisted/subscriptions","organizations_url":"https://api.github.com/users/dsplaisted/orgs","repos_url":"https://api.github.com/users/dsplaisted/repos","events_url":"https://api.github.com/users/dsplaisted/events{/privacy}","received_events_url":"https://api.github.com/users/dsplaisted/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T19:02:50Z","updated_at":"2015-10-19T19:02:50Z","body":"I've filed #294 to follow up on the duplicated code."}}