{"action":"created","issue":{"url":"https://api.github.com/repos/projectkudu/kudu/issues/1513","labels_url":"https://api.github.com/repos/projectkudu/kudu/issues/1513/labels{/name}","comments_url":"https://api.github.com/repos/projectkudu/kudu/issues/1513/comments","events_url":"https://api.github.com/repos/projectkudu/kudu/issues/1513/events","html_url":"https://github.com/projectkudu/kudu/issues/1513","id":64047358,"number":1513,"title":"How to handle Nuget packages referenced from repositories other than Nuget.org","user":{"login":"AlexandreRoba","id":60746,"avatar_url":"https://avatars.githubusercontent.com/u/60746?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexandreRoba","html_url":"https://github.com/AlexandreRoba","followers_url":"https://api.github.com/users/AlexandreRoba/followers","following_url":"https://api.github.com/users/AlexandreRoba/following{/other_user}","gists_url":"https://api.github.com/users/AlexandreRoba/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandreRoba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandreRoba/subscriptions","organizations_url":"https://api.github.com/users/AlexandreRoba/orgs","repos_url":"https://api.github.com/users/AlexandreRoba/repos","events_url":"https://api.github.com/users/AlexandreRoba/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandreRoba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-24T16:59:30Z","updated_at":"2015-03-24T17:32:25Z","closed_at":null,"body":"We deploying our sites we are make use of some NuGet packages that are stored on a different repository than the one at Nuget.org. The Packages from the Nuget.org are installed without any issue but when we reach the NuGets from the different repository we are getting the following error on the \" Running deployment command... \" action:\r\nCommand: \"C:\\inetpub\\apps\\helloidentity\\site\\deployments\\tools\\deploy.cmd\"\r\nHandling .NET Web Application deployment.\r\nUnable to find version '3.0.20820.0' of package 'AjaxControlToolkit'.\r\nUnable to find version '2.1.0.0' of package 'DirectShowLib-2005'.\r\nUnable to find version '2.1.9.0' of package 'linqtotwitterNET40'.\r\nUnable to find version '1.0.0.0' of package 'Microsoft.Http'.\r\nUnable to find version '15.0.4569.1000' of package 'Microsoft.SharePoint.Client'.\r\nUnable to find version '6.6.6' of package 'MySql.Data'.\r\nUnable to find version '4.3.1.0' of package 'payflow_dotNET'.\r\nUnable to find version '3.0.8.0' of package 'Sitefinity.RazorEngine'.\r\nFailed exitCode=1, command=nuget restore \"C:\\inetpub\\apps\\helloidentity\\site\\repository\\src\\HelloIdentityWebSite\\HelloIdentityWebSite.sln\"\r\nUnable to find version '0.5.1.6' of package 'Sitefinity.RedDog.Search'.\r\nAn error has occurred during web site deployment.\r\n\r\nWe have enabled the package restore on the solution and the repository is defined as a package source on nuget.target file which is under source control under the .nyget folder at the solution level. When building on TFS we are not getting any error and the packages gets restored properly using the repository defined on the NuGet.target.\r\n\r\nI tried to add a NuGet.Config on the same folder as the NuGet.exe which is used by kudu \"C:\\inetpub\\Kudu.Services.Web\\bin\\Scripts\\Nuget.Config\" with the following:\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<configuration>\r\n  <packageSources>\r\n    <add key=\"Nuget\" value=\"https://www.nuget.org/api/v2/\" />\r\n    <add key=\"SiteFinity\" value=\"http://http://nuget.sitefinity.com/nuget/\" />\r\n  </packageSources>\r\n</configuration>\r\n```\r\nBut it still cannot find the Nugets... Any idea how I can resolve this?"},"comment":{"url":"https://api.github.com/repos/projectkudu/kudu/issues/comments/85610367","html_url":"https://github.com/projectkudu/kudu/issues/1513#issuecomment-85610367","issue_url":"https://api.github.com/repos/projectkudu/kudu/issues/1513","id":85610367,"user":{"login":"AlexandreRoba","id":60746,"avatar_url":"https://avatars.githubusercontent.com/u/60746?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexandreRoba","html_url":"https://github.com/AlexandreRoba","followers_url":"https://api.github.com/users/AlexandreRoba/followers","following_url":"https://api.github.com/users/AlexandreRoba/following{/other_user}","gists_url":"https://api.github.com/users/AlexandreRoba/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandreRoba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandreRoba/subscriptions","organizations_url":"https://api.github.com/users/AlexandreRoba/orgs","repos_url":"https://api.github.com/users/AlexandreRoba/repos","events_url":"https://api.github.com/users/AlexandreRoba/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandreRoba/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T17:32:25Z","updated_at":"2015-03-24T17:32:25Z","body":"Indeed you are right. Unfortunatlly this does not resolve might issue...The typo was comming from my trial to add a NuGet.config file on the scripts folder. Apparently this config file is not picked up :(\r\nI checked my Nuget.target file on the solution and it does contains the right values...\r\n\r\n<ItemGroup Condition=\" '$(PackageSources)' == '' \">\r\n      <PackageSource Include=\"https://www.nuget.org/api/v2/\" />\r\n      <PackageSource Include=\"http://nuget.sitefinity.com/nuget/\" />\r\n    </ItemGroup>"}}