{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2236","repository_url":"https://api.github.com/repos/Microsoft/vsts-tasks","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2236/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2236/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2236/events","html_url":"https://github.com/Microsoft/vsts-tasks/issues/2236","id":169795051,"number":2236,"title":"Exception when running TFS 2015 custom build task","user":{"login":"yigaldviri","id":13430395,"avatar_url":"https://avatars.githubusercontent.com/u/13430395?v=3","gravatar_id":"","url":"https://api.github.com/users/yigaldviri","html_url":"https://github.com/yigaldviri","followers_url":"https://api.github.com/users/yigaldviri/followers","following_url":"https://api.github.com/users/yigaldviri/following{/other_user}","gists_url":"https://api.github.com/users/yigaldviri/gists{/gist_id}","starred_url":"https://api.github.com/users/yigaldviri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yigaldviri/subscriptions","organizations_url":"https://api.github.com/users/yigaldviri/orgs","repos_url":"https://api.github.com/users/yigaldviri/repos","events_url":"https://api.github.com/users/yigaldviri/events{/privacy}","received_events_url":"https://api.github.com/users/yigaldviri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels/Area:%20Core","name":"Area: Core","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"bryanmacfarlane","id":919564,"avatar_url":"https://avatars.githubusercontent.com/u/919564?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanmacfarlane","html_url":"https://github.com/bryanmacfarlane","followers_url":"https://api.github.com/users/bryanmacfarlane/followers","following_url":"https://api.github.com/users/bryanmacfarlane/following{/other_user}","gists_url":"https://api.github.com/users/bryanmacfarlane/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanmacfarlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanmacfarlane/subscriptions","organizations_url":"https://api.github.com/users/bryanmacfarlane/orgs","repos_url":"https://api.github.com/users/bryanmacfarlane/repos","events_url":"https://api.github.com/users/bryanmacfarlane/events{/privacy}","received_events_url":"https://api.github.com/users/bryanmacfarlane/received_events","type":"User","site_admin":false},"assignees":[{"login":"bryanmacfarlane","id":919564,"avatar_url":"https://avatars.githubusercontent.com/u/919564?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanmacfarlane","html_url":"https://github.com/bryanmacfarlane","followers_url":"https://api.github.com/users/bryanmacfarlane/followers","following_url":"https://api.github.com/users/bryanmacfarlane/following{/other_user}","gists_url":"https://api.github.com/users/bryanmacfarlane/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanmacfarlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanmacfarlane/subscriptions","organizations_url":"https://api.github.com/users/bryanmacfarlane/orgs","repos_url":"https://api.github.com/users/bryanmacfarlane/repos","events_url":"https://api.github.com/users/bryanmacfarlane/events{/privacy}","received_events_url":"https://api.github.com/users/bryanmacfarlane/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-08-07T12:54:46Z","updated_at":"2016-08-09T09:07:19Z","closed_at":null,"body":"\r\nI have developed a plugin (extension) for TFS 2015.\r\nThe plugin is actually a custom build task that can be added as a step in the build process.\r\n\r\nThe problem is that when I developed my plugin I used TFS 2015 update 2.1 but my users work with update 2.0 and they see this strange error shortly after the plugin starts running during the process of asking for the user inputs.\r\n\r\nWhen this line is executed:\r\n\r\n`var credentials = tl.getEndpointAuthorization(endpoint, false)[\"parameters\"];`  \r\n\r\nThis error occurs:\r\n\r\n> System.FormatException: Input string was not in a correct format.\r\n\r\nI was able to reproduce this error and it exists only in update 2.0 and gone after I updated to 2.1 /3 . I have searched and found in the 2.1/3 [update change log](https://www.visualstudio.com/en-us/news/releasenotes/tfs2015-update3-vs) that this bug was fixed:\r\n\r\n> Extensions with cross platform build tasks do not work\r\n\r\nIs there any workaround for this issue? My customer can't just upgrade his platform to the latest build and I need to find a way to help him.\r\nCan you shed some light on this issue? Something that might help? "},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments/238496388","html_url":"https://github.com/Microsoft/vsts-tasks/issues/2236#issuecomment-238496388","issue_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2236","id":238496388,"user":{"login":"yigaldviri","id":13430395,"avatar_url":"https://avatars.githubusercontent.com/u/13430395?v=3","gravatar_id":"","url":"https://api.github.com/users/yigaldviri","html_url":"https://github.com/yigaldviri","followers_url":"https://api.github.com/users/yigaldviri/followers","following_url":"https://api.github.com/users/yigaldviri/following{/other_user}","gists_url":"https://api.github.com/users/yigaldviri/gists{/gist_id}","starred_url":"https://api.github.com/users/yigaldviri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yigaldviri/subscriptions","organizations_url":"https://api.github.com/users/yigaldviri/orgs","repos_url":"https://api.github.com/users/yigaldviri/repos","events_url":"https://api.github.com/users/yigaldviri/events{/privacy}","received_events_url":"https://api.github.com/users/yigaldviri/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T09:07:19Z","updated_at":"2016-08-09T09:07:19Z","body":"vsts-task-lib@0.5.10.\r\nIt works on agent downloaded from update 2.1 or update 3. But not on agent downloaded from update 2.0"}}
{"actor":{"display_login":"yigaldviri"}}