{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/7889","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/7889/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/7889/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/7889/events","html_url":"https://github.com/dotnet/cli/issues/7889","id":267816636,"number":7889,"title":"dotnet add package String reference error","user":{"login":"dsplaisted","id":145043,"avatar_url":"https://avatars3.githubusercontent.com/u/145043?v=4","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":[{"id":290706473,"url":"https://api.github.com/repos/dotnet/cli/labels/external","name":"external","color":"fef2c0","default":false},{"id":728714035,"url":"https://api.github.com/repos/dotnet/cli/labels/waiting-on-feedback","name":"waiting-on-feedback","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-23T21:02:45Z","updated_at":"2017-10-23T21:02:46Z","closed_at":null,"author_association":"MEMBER","body":"_From @gregdegruy on October 10, 2017 21:12_\n\n# String reference error\r\n\r\nNotice how there is no proper string replacement done below.\r\n```\r\nError while adding package '{0}' to project '{1}'\r\n```\r\n\r\nWould like to help fix, but not sure where the repo or if it is open source for the ERROR handling in the dotnet CLI.\r\n\r\n## Error\r\n```\r\nC:\\GitHub\\_mr.robot\\DYN.Gamification\\DYN.Gamification [master ≡ +2 ~2 -0 !]> dotnet add package Microsoft.CrmSdk.CoreAssemblies --version 8.2.0.2\r\n  Writing C:\\Users\\grdegr\\AppData\\Local\\Temp\\tmp399F.tmp\r\ninfo : Adding PackageReference for package 'Microsoft.CrmSdk.CoreAssemblies' into project 'C:\\GitHub\\_mr.robot\\DYN.Gamification\\DYN.Gamification\\DYN.Gamification.csproj'.\r\nerror: Error while adding package '{0}' to project '{1}'. dotnet add package command supports adding package to one project at a time. But no project was found at the project path '{0}'.\r\nC:\\GitHub\\_mr.robot\\DYN.Gamification\\DYN.Gamification [master ≡ +2 ~2 -0 !]>\r\n```\r\n\r\n\n\n_Copied from original issue: dotnet/docs#3368_"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/338795782","html_url":"https://github.com/dotnet/cli/issues/7889#issuecomment-338795782","issue_url":"https://api.github.com/repos/dotnet/cli/issues/7889","id":338795782,"user":{"login":"dsplaisted","id":145043,"avatar_url":"https://avatars3.githubusercontent.com/u/145043?v=4","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":"2017-10-23T21:02:46Z","updated_at":"2017-10-23T21:02:46Z","author_association":"MEMBER","body":"_From @mairaw on October 10, 2017 22:47_\n\nThanks @gregdegruy. Can you provide the info you get when you run `dotnet --info`? The CLI repo is open source too. You can find it at https://github.com/dotnet/cli/.\r\n\r\nI have 2.0.0 SDK installed and the message I get is different. So it would be good to know which version you're running.\r\n```\r\nC:\\Temp\\projects\\DYN.Gamification [master ≡ +2 ~2 -0 !]>dotnet add package Microsoft.CrmSdk.CoreAssemblies --version 8.2.0.2\r\nCould not find any project in `C:\\Temp\\projects\\DYN.Gamification [master ≡ +2 ~2 -0 !]\\`.\r\nUsage: dotnet add <PROJECT> package [options] <PACKAGE_NAME>\r\n\r\nArguments:\r\n  <PROJECT>        The project file to operate on. If a file is not specified, the command will search the current directory for one.\r\n  <PACKAGE_NAME>   The package reference to add.\r\n\r\nOptions:\r\n  -h, --help                                Show help information.\r\n  -v, --version <VERSION>                   Version for the package to be added.\r\n  -f, --framework <FRAMEWORK>               Adds reference only when targeting a specific framework.\r\n  -n, --no-restore                          Adds reference without performing restore preview and compatibility check.\r\n  -s, --source <SOURCE>                     Specifies NuGet package sources to use during the restore.\r\n  --package-directory <PACKAGE_DIRECTORY>   Restores the packages to the specified directory.\r\n```\r\n\r\n/cc @livarcocc @dsplaisted\r\n\r\n "}}
{"actor":{"display_login":"dsplaisted"}}