{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/3174","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/3174/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/3174/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/3174/events","html_url":"https://github.com/dotnet/cli/issues/3174","id":156080207,"number":3174,"title":"Restore fails when a NuGet feed with Encrypted Credentials (default) is defined on the system","user":{"login":"justinbailey","id":1923735,"avatar_url":"https://avatars.githubusercontent.com/u/1923735?v=3","gravatar_id":"","url":"https://api.github.com/users/justinbailey","html_url":"https://github.com/justinbailey","followers_url":"https://api.github.com/users/justinbailey/followers","following_url":"https://api.github.com/users/justinbailey/following{/other_user}","gists_url":"https://api.github.com/users/justinbailey/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbailey/subscriptions","organizations_url":"https://api.github.com/users/justinbailey/orgs","repos_url":"https://api.github.com/users/justinbailey/repos","events_url":"https://api.github.com/users/justinbailey/events{/privacy}","received_events_url":"https://api.github.com/users/justinbailey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-05-21T02:58:16Z","updated_at":"2016-09-29T15:41:56Z","closed_at":null,"body":"## Steps to reproduce\r\n1. set nuget private feed with credentials as described [here](https://docs.nuget.org/consume/nuget-config-settings#credentials-for-package-source)\r\n`NuGet.exe Sources Add -Name <feedName> -Source <pathToPackageSource> -UserName xxx -Password <secret>`\r\n2. validate that nuget works with the feed on a non-Core project\r\n3. create new basic app using dotnet new\r\n4. restore packages using dotnet restore\r\n\r\n## Expected  behavior\r\nlog  : Restoring packages for D:\\_temp\\_net\\project.json...\r\ninfo :   GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json\r\ninfo :   GET https://nuget.telerik.com/nuget/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'\r\ninfo :   OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json 322ms\r\ninfo :   OK https://nuget.telerik.com/nuget/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver' 526ms\r\ninfo :   GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethost/index.json\r\ninfo :   GET https://nuget.telerik.com/nuget/FindPackagesById()?id='Microsoft.NETCore.DotNetHost'\r\ninfo :   OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethost/index.json 150ms\r\ninfo :   OK https://nuget.telerik.com/nuget/FindPackagesById()?id='Microsoft.NETCore.DotNetHost' 230ms\r\nlog  : Installing Microsoft.NETCore.Windows.ApiSets 1.0.1-rc2-24027.\r\nlog  : ... <remaining entries omitted> ...\r\ninfo : Committing restore...\r\nlog  : Writing lock file to disk. Path: D:\\_temp\\_net\\project.lock.json\r\nlog  : D:\\_temp\\_net\\project.json\r\nlog  : Restore completed in 29062ms.\r\n\r\nNuGet Config files used:\r\n    C:\\Users\\Justin\\AppData\\Roaming\\NuGet\\NuGet.Config\r\n    C:\\ProgramData\\nuget\\Config\\Microsoft.VisualStudio.Offline.config\r\n\r\nFeeds used:\r\n    https://api.nuget.org/v3/index.json\r\n    https://nuget.telerik.com/nuget\r\n    C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\\r\n\r\nInstalled:\r\n    112 package(s) to D:\\_temp\\_net\\project.json\r\n\r\n## Actual behavior\r\n`info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethost/index.json\r\nlog  : Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='Microsoft.NETCore.DotNetHost''.\r\nlog  : Password decryption failed for source : 'https://nuget.telerik.com/nuget' is unsupported on this platform. A clear text password may be used instead.\r\nlog  :   Specified method is not supported.\r\nlog  : Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='Microsoft.NETCore.DotNetHost''.\r\nlog  : Password decryption failed for source : 'https://nuget.telerik.com/nuget' is unsupported on this platform. A clear text password may be used instead.\r\nlog  :   Specified method is not supported.\r\nerror: Failed to retrieve information from remote source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='Microsoft.NETCore.DotNetHost''.\r\nerror: Password decryption failed for source : 'https://nuget.telerik.com/nuget' is unsupported on this platform. A clear text password may be used instead.\r\nerror: Failed to retrieve information from remote source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='Microsoft.NETCore.DotNetHost''.\r\nerror:   Password decryption failed for source : 'https://nuget.telerik.com/nuget' is unsupported on this platform. A clear text password may be used instead.\r\nerror:   Specified method is not supported.`\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n.NET Command Line Tools (1.0.0-preview1-002702)\r\n\r\nProduct Information:\r\n Version:     1.0.0-preview1-002702\r\n Commit Sha:  6cde21225e\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.10586\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n\r\n## Comment\r\nWorkaround is to store the credentials in PlainText using the `-StorePasswordInClearText` argument when adding the feed such as `NuGet.exe Sources Add -Name <feedName> -Source <pathToPackageSource> -UserName xxx -Password <secret> -StorePasswordInClearText` as described in the logged error message. \r\n\r\nHowever, corporate policy disallows storing any password in cleartext, so we are in trouble if this is not fixed for RTM.\r\n\r\nAnd restore worked properly in RC1 when Nuget feed contained Encrypted credentials prior to the switch to RC2.\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/250504369","html_url":"https://github.com/dotnet/cli/issues/3174#issuecomment-250504369","issue_url":"https://api.github.com/repos/dotnet/cli/issues/3174","id":250504369,"user":{"login":"zjrunner","id":1724619,"avatar_url":"https://avatars.githubusercontent.com/u/1724619?v=3","gravatar_id":"","url":"https://api.github.com/users/zjrunner","html_url":"https://github.com/zjrunner","followers_url":"https://api.github.com/users/zjrunner/followers","following_url":"https://api.github.com/users/zjrunner/following{/other_user}","gists_url":"https://api.github.com/users/zjrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/zjrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjrunner/subscriptions","organizations_url":"https://api.github.com/users/zjrunner/orgs","repos_url":"https://api.github.com/users/zjrunner/repos","events_url":"https://api.github.com/users/zjrunner/events{/privacy}","received_events_url":"https://api.github.com/users/zjrunner/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T15:41:56Z","updated_at":"2016-09-29T15:41:56Z","body":"I'm sorry, the update is still rolling out so seeing it will depend on which region your account resides.  You should see it light up within the next few days and you'll be able to continue using a custom version or just select the in-task version.  When it does roll out you will get a build warning that 3.3 is the selected default but we're continuing to use your custom version - that will be a good notification that the update has been applied and you can choose to either check our () 3.5 option (and clear the custom path) or the () custom option to make the warning disappear."}}
{"actor":{"display_login":"zjrunner"}}