{"action":"opened","issue":{"url":"https://api.github.com/repos/cake-build/cake/issues/2345","repository_url":"https://api.github.com/repos/cake-build/cake","labels_url":"https://api.github.com/repos/cake-build/cake/issues/2345/labels{/name}","comments_url":"https://api.github.com/repos/cake-build/cake/issues/2345/comments","events_url":"https://api.github.com/repos/cake-build/cake/issues/2345/events","html_url":"https://github.com/cake-build/cake/issues/2345","id":375320447,"node_id":"MDU6SXNzdWUzNzUzMjA0NDc=","number":2345,"title":"Allow NuGetRestoreSettings to opt out of settings -NonInteractive","user":{"login":"flcdrg","id":384747,"node_id":"MDQ6VXNlcjM4NDc0Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/384747?v=4","gravatar_id":"","url":"https://api.github.com/users/flcdrg","html_url":"https://github.com/flcdrg","followers_url":"https://api.github.com/users/flcdrg/followers","following_url":"https://api.github.com/users/flcdrg/following{/other_user}","gists_url":"https://api.github.com/users/flcdrg/gists{/gist_id}","starred_url":"https://api.github.com/users/flcdrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flcdrg/subscriptions","organizations_url":"https://api.github.com/users/flcdrg/orgs","repos_url":"https://api.github.com/users/flcdrg/repos","events_url":"https://api.github.com/users/flcdrg/events{/privacy}","received_events_url":"https://api.github.com/users/flcdrg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-30T04:52:43Z","updated_at":"2018-10-30T04:52:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### What You Are Seeing?\r\n`NuGetRestoreSettings` always sets `-NonInteractive`\r\n\r\n### What is Expected?\r\nUnder certain circumstances, I'd like nuget to not run run with the `-NonInteractive` parameter - for example when NuGet is run in combination with the Azure Artifacts CredentialProvider.VSS.exe. In that case, when used at an interactive command prompt, I'd want the credential provider to prompt the user for credentials. Currently NuGet passes through the `-NonInteractive` parameter to CredentialProvider.VSS.exe and so it just fails (rather than prompting the user).\r\n\r\n(In my case, I would check `System.Environment.UserInteractive` to determine whether `-NonInteractive` should be set or not)\r\n\r\n### What version of Cake are you using?\r\n0.30\r\n\r\n### Are you running on a 32 or 64 bit system?\r\n64\r\n\r\n### What environment are you running on?  Windows? Linux? Mac?\r\nWindows\r\n### Are you running on a CI Server?  If so, which one?\r\nTeamCity and Azure Pipelines\r\n\r\n### How Did You Get This To Happen? (Steps to Reproduce)\r\n\r\n1. Use Azure Artifacts NuGet feed\r\n2. Copy CredentialProvider.VSS.exe and put it in tools directory (alongside Cake's NuGet.exe)\r\n3. Use NuGetRestore(\"myproject.sln\") in Cake script\r\n4. Note that script fails to create authentication token and no user prompt is shown."}}
{"actor":{"display_login":"flcdrg"}}