{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/dnx/issues/2037","labels_url":"https://api.github.com/repos/aspnet/dnx/issues/2037/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/dnx/issues/2037/comments","events_url":"https://api.github.com/repos/aspnet/dnx/issues/2037/events","html_url":"https://github.com/aspnet/dnx/issues/2037","id":86507333,"number":2037,"title":"Package restore is broken in CoreClr/1.0.0-beta6-12005 on Linux","user":{"login":"kasthack","id":1292818,"avatar_url":"https://avatars.githubusercontent.com/u/1292818?v=3","gravatar_id":"","url":"https://api.github.com/users/kasthack","html_url":"https://github.com/kasthack","followers_url":"https://api.github.com/users/kasthack/followers","following_url":"https://api.github.com/users/kasthack/following{/other_user}","gists_url":"https://api.github.com/users/kasthack/gists{/gist_id}","starred_url":"https://api.github.com/users/kasthack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasthack/subscriptions","organizations_url":"https://api.github.com/users/kasthack/orgs","repos_url":"https://api.github.com/users/kasthack/repos","events_url":"https://api.github.com/users/kasthack/events{/privacy}","received_events_url":"https://api.github.com/users/kasthack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-09T08:28:33Z","updated_at":"2015-06-09T08:28:33Z","closed_at":null,"body":"```\r\nkasthack@kashack-desktop:~/Home/samples/ConsoleApp$ dnx . run\r\nSystem.InvalidOperationException: Failed to resolve the following dependencies for target framework 'DNXCore,Version=v5.0':\r\n   System.Console 4.0.0-beta-22605\r\n\r\nSearched Locations:\r\n  /root/Home/samples/{name}/project.json\r\n  /root/.dnx/packages/{name}/{version}/{name}.nuspec\r\n\r\nTry running 'dnu restore'.\r\n\r\n   at Microsoft.Framework.Runtime.DefaultHost.GetEntryPoint(String applicationName)\r\n   at Microsoft.Framework.ApplicationHost.Program.ExecuteMain(DefaultHost host, String applicationName, String[] args)\r\n   at Microsoft.Framework.ApplicationHost.Program.Main(String[] args)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider)\r\n   at dnx.host.Bootstrapper.RunAsync(List`1 args, IRuntimeEnvironment env)\r\n   at dnx.host.RuntimeBootstrapper.ExecuteAsync(String[] args)\r\n   at dnx.host.RuntimeBootstrapper.Execute(String[] args)\r\nkasthack@kashack-desktop:~/Home/samples/ConsoleApp$ dnu restore\r\nMicrosoft .NET Development Utility CoreCLR-x64-1.0.0-beta6-12005\r\n\r\n----------\r\nSystem.ArgumentNullException: Value cannot be null.\r\nParameter name: path1\r\n   at System.IO.Path.Combine(String path1, String path2, String path3)\r\n   at NuGet.Settings.LoadDefaultSettings(IFileSystem fileSystem, String configFileName, IMachineWideSettings machineWideSettings)\r\n   at Microsoft.Framework.PackageManager.SettingsUtils.ReadSettings(String solutionDir, String nugetConfigFile, IFileSystem fileSystem, IMachineWideSettings\r\n   at Microsoft.Framework.PackageManager.RestoreCommand.ReadSettings(String solutionDirectory)\r\n   at Microsoft.Framework.PackageManager.RestoreCommand.<Execute>d__76.MoveNext()\r\n----------\r\nRestore failed\r\nValue cannot be null.\r\nParameter name: path1\r\n```\r\n\r\nDNX [tries](https://github.com/aspnet/dnx/blob/e937e25ab3453ea86bda13c1297c41011dfda9de/src/Microsoft.Framework.PackageManager/NuGet/Core/Configuration/Settings.cs#L107\r\n) to get APPDATA environment variable. It's null by default.\r\n\r\nAfter setting APPDATA:\r\n\r\n```\r\nkasthack@kashack-desktop:~/Home/samples/ConsoleApp$ export APPDATA='/root/.config'\r\nkasthack@kashack-desktop:~/Home/samples/ConsoleApp$ dnu -v restore\r\nMicrosoft .NET Development Utility CoreCLR-x64-1.0.0-beta6-12005\r\n\r\n----------\r\nSystem.ArgumentNullException: Value cannot be null.\r\nParameter name: root\r\n   at NuGet.PhysicalFileSystem..ctor(String root)\r\n   at NuGet.CommandLineMachineWideSettings.<>c__DisplayClass1_0.<.ctor>b__0()\r\n   at System.Lazy`1.CreateValue()\r\n   at System.Lazy`1.LazyInitValue()\r\n   at NuGet.CommandLineMachineWideSettings.get_Settings()\r\n   at NuGet.Settings.LoadDefaultSettings(IFileSystem fileSystem, String configFileName, IMachineWideSettings machineWideSettings)\r\n   at Microsoft.Framework.PackageManager.SettingsUtils.ReadSettings(String solutionDir, String nugetConfigFile, IFileSystem fileSystem, IMachineWideSettings machineWideSettings)\r\n   at Microsoft.Framework.PackageManager.RestoreCommand.ReadSettings(String solutionDirectory)\r\n   at Microsoft.Framework.PackageManager.RestoreCommand.<Execute>d__76.MoveNext()\r\n----------\r\nRestore failed\r\nValue cannot be null.\r\nParameter name: root\r\n\r\n```\r\n\r\nWorks fine with mono as runtime."}}