{"action":"created","comment":{"url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/comments/40626953","id":40626953,"diff_hunk":"@@ -324,7 +323,7 @@ private void ReadSettings(PackageRestoreInputs packageRestoreInputs)\n                 {\n                     var message = string.Format(\n                         CultureInfo.CurrentCulture,\n-                        \"RestoreCommandFileNotFound\",\n+                        LocalizedResourceManager.GetString(\"RestoreCommandFileNotFound\"),","path":"src/NuGet.CommandLine/Commands/RestoreCommand.cs","position":206,"original_position":206,"commit_id":"f610e739fc137495bf9b26416b8274e32fc750d2","original_commit_id":"f610e739fc137495bf9b26416b8274e32fc750d2","user":{"login":"deepakaravindr","id":2380340,"avatar_url":"https://avatars.githubusercontent.com/u/2380340?v=3","gravatar_id":"","url":"https://api.github.com/users/deepakaravindr","html_url":"https://github.com/deepakaravindr","followers_url":"https://api.github.com/users/deepakaravindr/followers","following_url":"https://api.github.com/users/deepakaravindr/following{/other_user}","gists_url":"https://api.github.com/users/deepakaravindr/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakaravindr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakaravindr/subscriptions","organizations_url":"https://api.github.com/users/deepakaravindr/orgs","repos_url":"https://api.github.com/users/deepakaravindr/repos","events_url":"https://api.github.com/users/deepakaravindr/events{/privacy}","received_events_url":"https://api.github.com/users/deepakaravindr/received_events","type":"User","site_admin":false},"body":"Please use nameof(NuGetResources.RestoreCommandFileNotFound).\r\n\r\nI don't know why InvalidOperationException is thrown here. Probably we need to retain it. But, CommandLineException takes in a format and applies CurrentCulture and so on.\r\nInstead of 2 lines, it could have been \r\n'throw new CommandLineException(LocalizedResourceManager.GetString(....), packageReferenceFile);'","created_at":"2015-09-29T01:51:42Z","updated_at":"2015-09-29T01:51:42Z","html_url":"https://github.com/NuGet/NuGet.PackageManagement/pull/101#discussion_r40626953","pull_request_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/comments/40626953"},"html":{"href":"https://github.com/NuGet/NuGet.PackageManagement/pull/101#discussion_r40626953"},"pull_request":{"href":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/101","id":46120601,"html_url":"https://github.com/NuGet/NuGet.PackageManagement/pull/101","diff_url":"https://github.com/NuGet/NuGet.PackageManagement/pull/101.diff","patch_url":"https://github.com/NuGet/NuGet.PackageManagement/pull/101.patch","issue_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/issues/101","number":101,"state":"open","locked":false,"title":"nuget.exe restore command input validation fixes","user":{"login":"emgarten","id":6381138,"avatar_url":"https://avatars.githubusercontent.com/u/6381138?v=3","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false},"body":"This change adds additional validation to restore command inputs.\r\n\r\n* DNX projects will be skipped during restore\r\n* Restore <missing project.json> would return the exception message from NuGet.Commands instead of the localized nuget.exe resource.\r\n* Restore <missing .csproj> now gives an error message describing the problem\r\n* Fixed an error message which printed out the resource name instead of the actual string for RestoreCommandFileNotFound \r\n* Added ExitCodeException to handle setting a non-zero exit code. This gets rid of the non-meaningful error message about a CommandLineException being thrown.\r\n\r\nhttps://github.com/NuGet/Home/issues/1227\r\nhttps://github.com/NuGet/Home/issues/1311\r\n\r\n//cc @deepakaravindr @feiling @zhili1208 @MeniZalzman @yishaigalatzer ","created_at":"2015-09-28T05:01:25Z","updated_at":"2015-09-29T01:51:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bd79f72dde06b638a5f62099aa1dbb53b320c09","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/101/commits","review_comments_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/101/comments","review_comment_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/issues/101/comments","statuses_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/statuses/f610e739fc137495bf9b26416b8274e32fc750d2","head":{"label":"NuGet:emgarten/skipXproj","ref":"emgarten/skipXproj","sha":"f610e739fc137495bf9b26416b8274e32fc750d2","user":{"login":"NuGet","id":968310,"avatar_url":"https://avatars.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"repo":{"id":26662893,"name":"NuGet.PackageManagement","full_name":"NuGet/NuGet.PackageManagement","owner":{"login":"NuGet","id":968310,"avatar_url":"https://avatars.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NuGet/NuGet.PackageManagement","description":"NuGet.exe as well a libraries for reading and writing manifests of installed packages","fork":false,"url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement","forks_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/forks","keys_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/teams","hooks_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/hooks","issue_events_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/issues/events{/number}","events_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/events","assignees_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/assignees{/user}","branches_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/branches{/branch}","tags_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/tags","blobs_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/git/refs{/sha}","trees_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/statuses/{sha}","languages_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/languages","stargazers_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/stargazers","contributors_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/contributors","subscribers_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/subscribers","subscription_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/subscription","commits_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/commits{/sha}","git_commits_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/git/commits{/sha}","comments_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/comments{/number}","issue_comment_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/issues/comments{/number}","contents_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/contents/{+path}","compare_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/merges","archive_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/downloads","issues_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/issues{/number}","pulls_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls{/number}","milestones_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/milestones{/number}","notifications_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/labels{/name}","releases_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/releases{/id}","created_at":"2014-11-14T23:55:44Z","updated_at":"2015-09-01T01:00:09Z","pushed_at":"2015-09-29T01:16:33Z","git_url":"git://github.com/NuGet/NuGet.PackageManagement.git","ssh_url":"git@github.com:NuGet/NuGet.PackageManagement.git","clone_url":"https://github.com/NuGet/NuGet.PackageManagement.git","svn_url":"https://github.com/NuGet/NuGet.PackageManagement","homepage":"","size":7912,"stargazers_count":12,"watchers_count":12,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":4,"forks":9,"open_issues":4,"watchers":12,"default_branch":"dev"}},"base":{"label":"NuGet:dev","ref":"dev","sha":"3d6cf88131280c789d81f543b33df40421ad7e5b","user":{"login":"NuGet","id":968310,"avatar_url":"https://avatars.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"repo":{"id":26662893,"name":"NuGet.PackageManagement","full_name":"NuGet/NuGet.PackageManagement","owner":{"login":"NuGet","id":968310,"avatar_url":"https://avatars.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NuGet/NuGet.PackageManagement","description":"NuGet.exe as well a libraries for reading and writing manifests of installed packages","fork":false,"url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement","forks_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/forks","keys_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/teams","hooks_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/hooks","issue_events_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/issues/events{/number}","events_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/events","assignees_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/assignees{/user}","branches_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/branches{/branch}","tags_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/tags","blobs_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/git/refs{/sha}","trees_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/statuses/{sha}","languages_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/languages","stargazers_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/stargazers","contributors_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/contributors","subscribers_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/subscribers","subscription_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/subscription","commits_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/commits{/sha}","git_commits_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/git/commits{/sha}","comments_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/comments{/number}","issue_comment_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/issues/comments{/number}","contents_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/contents/{+path}","compare_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/merges","archive_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/downloads","issues_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/issues{/number}","pulls_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls{/number}","milestones_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/milestones{/number}","notifications_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/labels{/name}","releases_url":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/releases{/id}","created_at":"2014-11-14T23:55:44Z","updated_at":"2015-09-01T01:00:09Z","pushed_at":"2015-09-29T01:16:33Z","git_url":"git://github.com/NuGet/NuGet.PackageManagement.git","ssh_url":"git@github.com:NuGet/NuGet.PackageManagement.git","clone_url":"https://github.com/NuGet/NuGet.PackageManagement.git","svn_url":"https://github.com/NuGet/NuGet.PackageManagement","homepage":"","size":7912,"stargazers_count":12,"watchers_count":12,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":4,"forks":9,"open_issues":4,"watchers":12,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/101"},"html":{"href":"https://github.com/NuGet/NuGet.PackageManagement/pull/101"},"issue":{"href":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/issues/101"},"comments":{"href":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/NuGet/NuGet.PackageManagement/statuses/f610e739fc137495bf9b26416b8274e32fc750d2"}}}}