{"action":"created","comment":{"url":"https://api.github.com/repos/Sonarr/Sonarr/pulls/comments/35361237","id":35361237,"diff_hunk":"@@ -0,0 +1,239 @@\n+#! /bin/bash\n+msBuild='/c/Windows/Microsoft.NET/Framework64/v4.0.30319/'\n+outputFolder='./_output'\n+outputFolderMono='./_output_mono'\n+outputFolderOsx='./_output_osx'\n+outputFolderOsxApp='./_output_osx_app'\n+testPackageFolder='./_tests/'\n+testSearchPattern='*.Test/bin/x86/Release/*'\n+sourceFolder='./src'\n+updateFolder=$outputFolder/NzbDrone.Update\n+updateFolderMono=$outputFolderMono/NzbDrone.Update\n+\n+CheckExitCode()\n+{\n+    \"$@\"\n+    local status=$?\n+    if [ $status -ne 0 ]; then\n+        echo \"error with $1\" >&2\n+        exit 1\n+    fi\n+    return $status\n+}\n+\n+CleanFolder()\n+{\n+    local path=$1\n+    local keepConfigFiles=$2\n+\n+    echo \"Removing XMLDoc files\"\n+    find $path -name \"*.xml\" -delete\n+    find $path -name \"*.transform\" -delete","path":"build.sh","position":31,"original_position":31,"commit_id":"1238a84acd8f77eb48a9bc7dc657df5227773b38","original_commit_id":"1238a84acd8f77eb48a9bc7dc657df5227773b38","user":{"login":"kayone","id":412280,"avatar_url":"https://avatars.githubusercontent.com/u/412280?v=3","gravatar_id":"","url":"https://api.github.com/users/kayone","html_url":"https://github.com/kayone","followers_url":"https://api.github.com/users/kayone/followers","following_url":"https://api.github.com/users/kayone/following{/other_user}","gists_url":"https://api.github.com/users/kayone/gists{/gist_id}","starred_url":"https://api.github.com/users/kayone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayone/subscriptions","organizations_url":"https://api.github.com/users/kayone/orgs","repos_url":"https://api.github.com/users/kayone/repos","events_url":"https://api.github.com/users/kayone/events{/privacy}","received_events_url":"https://api.github.com/users/kayone/received_events","type":"User","site_admin":false},"body":"update to latest version, still same issue.","created_at":"2015-07-23T19:27:26Z","updated_at":"2015-07-23T19:27:26Z","html_url":"https://github.com/Sonarr/Sonarr/pull/661#discussion_r35361237","pull_request_url":"https://api.github.com/repos/Sonarr/Sonarr/pulls/661","_links":{"self":{"href":"https://api.github.com/repos/Sonarr/Sonarr/pulls/comments/35361237"},"html":{"href":"https://github.com/Sonarr/Sonarr/pull/661#discussion_r35361237"},"pull_request":{"href":"https://api.github.com/repos/Sonarr/Sonarr/pulls/661"}}},"pull_request":{"url":"https://api.github.com/repos/Sonarr/Sonarr/pulls/661","id":39206684,"html_url":"https://github.com/Sonarr/Sonarr/pull/661","diff_url":"https://github.com/Sonarr/Sonarr/pull/661.diff","patch_url":"https://github.com/Sonarr/Sonarr/pull/661.patch","issue_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/661","number":661,"state":"open","locked":false,"title":"Fix linux build and add build.sh","user":{"login":"ta264","id":4957935,"avatar_url":"https://avatars.githubusercontent.com/u/4957935?v=3","gravatar_id":"","url":"https://api.github.com/users/ta264","html_url":"https://github.com/ta264","followers_url":"https://api.github.com/users/ta264/followers","following_url":"https://api.github.com/users/ta264/following{/other_user}","gists_url":"https://api.github.com/users/ta264/gists{/gist_id}","starred_url":"https://api.github.com/users/ta264/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ta264/subscriptions","organizations_url":"https://api.github.com/users/ta264/orgs","repos_url":"https://api.github.com/users/ta264/repos","events_url":"https://api.github.com/users/ta264/events{/privacy}","received_events_url":"https://api.github.com/users/ta264/received_events","type":"User","site_admin":false},"body":"This fixes the build on linux (xbuild complains about a few ambiguous calls) and adds build.sh, the first item in #506 \r\n\r\n_output_mono seems to work for me.  _output_osx and _output_osx_app look ok compared to running build.ps1 on windows but I don't have a mac to test it on.  _output is missing all the pdbs - it might be possible to generate them but I'm not sure if there's any need.\r\nhttp://stackoverflow.com/questions/13499384/is-it-possible-to-debug-assemblies-compiled-with-mono-xbuild-with-visual-studi\r\n\r\n_tests looks ok and mono_tests.sh runs with almost all the tests passing.  However the integration tests  from NzbDrone.Integration.Test.dll all seem to fail.  I've put a log file [here](https://gist.github.com/ta264/e37f0db2e5b49014e02b) in case you can see what's going wrong.  I tried running them in VS from the delevop branch and they still fail, with a similar file not found error, so I don't think it's anything I've done.\r\n","created_at":"2015-07-04T11:44:03Z","updated_at":"2015-07-23T19:27:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9743d4571214353391fb4864ca96429835f979e3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sonarr/Sonarr/pulls/661/commits","review_comments_url":"https://api.github.com/repos/Sonarr/Sonarr/pulls/661/comments","review_comment_url":"https://api.github.com/repos/Sonarr/Sonarr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/661/comments","statuses_url":"https://api.github.com/repos/Sonarr/Sonarr/statuses/1238a84acd8f77eb48a9bc7dc657df5227773b38","head":{"label":"ta264:linux-build","ref":"linux-build","sha":"1238a84acd8f77eb48a9bc7dc657df5227773b38","user":{"login":"ta264","id":4957935,"avatar_url":"https://avatars.githubusercontent.com/u/4957935?v=3","gravatar_id":"","url":"https://api.github.com/users/ta264","html_url":"https://github.com/ta264","followers_url":"https://api.github.com/users/ta264/followers","following_url":"https://api.github.com/users/ta264/following{/other_user}","gists_url":"https://api.github.com/users/ta264/gists{/gist_id}","starred_url":"https://api.github.com/users/ta264/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ta264/subscriptions","organizations_url":"https://api.github.com/users/ta264/orgs","repos_url":"https://api.github.com/users/ta264/repos","events_url":"https://api.github.com/users/ta264/events{/privacy}","received_events_url":"https://api.github.com/users/ta264/received_events","type":"User","site_admin":false},"repo":{"id":30108690,"name":"Sonarr","full_name":"ta264/Sonarr","owner":{"login":"ta264","id":4957935,"avatar_url":"https://avatars.githubusercontent.com/u/4957935?v=3","gravatar_id":"","url":"https://api.github.com/users/ta264","html_url":"https://github.com/ta264","followers_url":"https://api.github.com/users/ta264/followers","following_url":"https://api.github.com/users/ta264/following{/other_user}","gists_url":"https://api.github.com/users/ta264/gists{/gist_id}","starred_url":"https://api.github.com/users/ta264/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ta264/subscriptions","organizations_url":"https://api.github.com/users/ta264/orgs","repos_url":"https://api.github.com/users/ta264/repos","events_url":"https://api.github.com/users/ta264/events{/privacy}","received_events_url":"https://api.github.com/users/ta264/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ta264/Sonarr","description":"Smart PVR for newsgroup and bittorrent users.","fork":true,"url":"https://api.github.com/repos/ta264/Sonarr","forks_url":"https://api.github.com/repos/ta264/Sonarr/forks","keys_url":"https://api.github.com/repos/ta264/Sonarr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ta264/Sonarr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ta264/Sonarr/teams","hooks_url":"https://api.github.com/repos/ta264/Sonarr/hooks","issue_events_url":"https://api.github.com/repos/ta264/Sonarr/issues/events{/number}","events_url":"https://api.github.com/repos/ta264/Sonarr/events","assignees_url":"https://api.github.com/repos/ta264/Sonarr/assignees{/user}","branches_url":"https://api.github.com/repos/ta264/Sonarr/branches{/branch}","tags_url":"https://api.github.com/repos/ta264/Sonarr/tags","blobs_url":"https://api.github.com/repos/ta264/Sonarr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ta264/Sonarr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ta264/Sonarr/git/refs{/sha}","trees_url":"https://api.github.com/repos/ta264/Sonarr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ta264/Sonarr/statuses/{sha}","languages_url":"https://api.github.com/repos/ta264/Sonarr/languages","stargazers_url":"https://api.github.com/repos/ta264/Sonarr/stargazers","contributors_url":"https://api.github.com/repos/ta264/Sonarr/contributors","subscribers_url":"https://api.github.com/repos/ta264/Sonarr/subscribers","subscription_url":"https://api.github.com/repos/ta264/Sonarr/subscription","commits_url":"https://api.github.com/repos/ta264/Sonarr/commits{/sha}","git_commits_url":"https://api.github.com/repos/ta264/Sonarr/git/commits{/sha}","comments_url":"https://api.github.com/repos/ta264/Sonarr/comments{/number}","issue_comment_url":"https://api.github.com/repos/ta264/Sonarr/issues/comments{/number}","contents_url":"https://api.github.com/repos/ta264/Sonarr/contents/{+path}","compare_url":"https://api.github.com/repos/ta264/Sonarr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ta264/Sonarr/merges","archive_url":"https://api.github.com/repos/ta264/Sonarr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ta264/Sonarr/downloads","issues_url":"https://api.github.com/repos/ta264/Sonarr/issues{/number}","pulls_url":"https://api.github.com/repos/ta264/Sonarr/pulls{/number}","milestones_url":"https://api.github.com/repos/ta264/Sonarr/milestones{/number}","notifications_url":"https://api.github.com/repos/ta264/Sonarr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ta264/Sonarr/labels{/name}","releases_url":"https://api.github.com/repos/ta264/Sonarr/releases{/id}","created_at":"2015-01-31T09:59:38Z","updated_at":"2015-04-13T18:55:50Z","pushed_at":"2015-07-23T17:27:47Z","git_url":"git://github.com/ta264/Sonarr.git","ssh_url":"git@github.com:ta264/Sonarr.git","clone_url":"https://github.com/ta264/Sonarr.git","svn_url":"https://github.com/ta264/Sonarr","homepage":"https://sonarr.tv","size":198869,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Sonarr:develop","ref":"develop","sha":"9fe8477a40d4ac0b866830c6fea9113560f26597","user":{"login":"Sonarr","id":1082903,"avatar_url":"https://avatars.githubusercontent.com/u/1082903?v=3","gravatar_id":"","url":"https://api.github.com/users/Sonarr","html_url":"https://github.com/Sonarr","followers_url":"https://api.github.com/users/Sonarr/followers","following_url":"https://api.github.com/users/Sonarr/following{/other_user}","gists_url":"https://api.github.com/users/Sonarr/gists{/gist_id}","starred_url":"https://api.github.com/users/Sonarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sonarr/subscriptions","organizations_url":"https://api.github.com/users/Sonarr/orgs","repos_url":"https://api.github.com/users/Sonarr/repos","events_url":"https://api.github.com/users/Sonarr/events{/privacy}","received_events_url":"https://api.github.com/users/Sonarr/received_events","type":"Organization","site_admin":false},"repo":{"id":2465723,"name":"Sonarr","full_name":"Sonarr/Sonarr","owner":{"login":"Sonarr","id":1082903,"avatar_url":"https://avatars.githubusercontent.com/u/1082903?v=3","gravatar_id":"","url":"https://api.github.com/users/Sonarr","html_url":"https://github.com/Sonarr","followers_url":"https://api.github.com/users/Sonarr/followers","following_url":"https://api.github.com/users/Sonarr/following{/other_user}","gists_url":"https://api.github.com/users/Sonarr/gists{/gist_id}","starred_url":"https://api.github.com/users/Sonarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sonarr/subscriptions","organizations_url":"https://api.github.com/users/Sonarr/orgs","repos_url":"https://api.github.com/users/Sonarr/repos","events_url":"https://api.github.com/users/Sonarr/events{/privacy}","received_events_url":"https://api.github.com/users/Sonarr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sonarr/Sonarr","description":"Smart PVR for newsgroup and bittorrent users.","fork":false,"url":"https://api.github.com/repos/Sonarr/Sonarr","forks_url":"https://api.github.com/repos/Sonarr/Sonarr/forks","keys_url":"https://api.github.com/repos/Sonarr/Sonarr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sonarr/Sonarr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sonarr/Sonarr/teams","hooks_url":"https://api.github.com/repos/Sonarr/Sonarr/hooks","issue_events_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/events{/number}","events_url":"https://api.github.com/repos/Sonarr/Sonarr/events","assignees_url":"https://api.github.com/repos/Sonarr/Sonarr/assignees{/user}","branches_url":"https://api.github.com/repos/Sonarr/Sonarr/branches{/branch}","tags_url":"https://api.github.com/repos/Sonarr/Sonarr/tags","blobs_url":"https://api.github.com/repos/Sonarr/Sonarr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sonarr/Sonarr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sonarr/Sonarr/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sonarr/Sonarr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sonarr/Sonarr/statuses/{sha}","languages_url":"https://api.github.com/repos/Sonarr/Sonarr/languages","stargazers_url":"https://api.github.com/repos/Sonarr/Sonarr/stargazers","contributors_url":"https://api.github.com/repos/Sonarr/Sonarr/contributors","subscribers_url":"https://api.github.com/repos/Sonarr/Sonarr/subscribers","subscription_url":"https://api.github.com/repos/Sonarr/Sonarr/subscription","commits_url":"https://api.github.com/repos/Sonarr/Sonarr/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sonarr/Sonarr/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sonarr/Sonarr/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sonarr/Sonarr/contents/{+path}","compare_url":"https://api.github.com/repos/Sonarr/Sonarr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sonarr/Sonarr/merges","archive_url":"https://api.github.com/repos/Sonarr/Sonarr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sonarr/Sonarr/downloads","issues_url":"https://api.github.com/repos/Sonarr/Sonarr/issues{/number}","pulls_url":"https://api.github.com/repos/Sonarr/Sonarr/pulls{/number}","milestones_url":"https://api.github.com/repos/Sonarr/Sonarr/milestones{/number}","notifications_url":"https://api.github.com/repos/Sonarr/Sonarr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sonarr/Sonarr/labels{/name}","releases_url":"https://api.github.com/repos/Sonarr/Sonarr/releases{/id}","created_at":"2011-09-27T05:57:16Z","updated_at":"2015-07-23T04:26:48Z","pushed_at":"2015-07-23T17:27:47Z","git_url":"git://github.com/Sonarr/Sonarr.git","ssh_url":"git@github.com:Sonarr/Sonarr.git","clone_url":"https://github.com/Sonarr/Sonarr.git","svn_url":"https://github.com/Sonarr/Sonarr","homepage":"https://sonarr.tv","size":228296,"stargazers_count":750,"watchers_count":750,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":215,"mirror_url":null,"open_issues_count":309,"forks":215,"open_issues":309,"watchers":750,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Sonarr/Sonarr/pulls/661"},"html":{"href":"https://github.com/Sonarr/Sonarr/pull/661"},"issue":{"href":"https://api.github.com/repos/Sonarr/Sonarr/issues/661"},"comments":{"href":"https://api.github.com/repos/Sonarr/Sonarr/issues/661/comments"},"review_comments":{"href":"https://api.github.com/repos/Sonarr/Sonarr/pulls/661/comments"},"review_comment":{"href":"https://api.github.com/repos/Sonarr/Sonarr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sonarr/Sonarr/pulls/661/commits"},"statuses":{"href":"https://api.github.com/repos/Sonarr/Sonarr/statuses/1238a84acd8f77eb48a9bc7dc657df5227773b38"}}}}