{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/dnx/issues/2350","labels_url":"https://api.github.com/repos/aspnet/dnx/issues/2350/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/dnx/issues/2350/comments","events_url":"https://api.github.com/repos/aspnet/dnx/issues/2350/events","html_url":"https://github.com/aspnet/dnx/issues/2350","id":97341700,"number":2350,"title":"`dnu sources get` should not unconditionally result in `global.json` reference to cloned repo","user":{"login":"dougbu","id":6431421,"avatar_url":"https://avatars.githubusercontent.com/u/6431421?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-26T19:04:53Z","updated_at":"2015-07-27T17:22:57Z","closed_at":"2015-07-27T17:22:57Z","body":"Copied from aspnet/Tooling-Internal#429 because it's DNX that changes `global.json`.\r\n\r\nChanging `global.json` should be an off-by-default option. When on, the result is permanent changes to the solution file, at best longer package restoration and builds, and at worst failed builds.\r\n\r\nI expected `dnu sources` to do what its help says -- \"Retrieves the source code for packages used by projects\". Then I would navigate to the downloaded sources in any solution where I need to debug those classes.\r\n\r\nFor example, once the MVC repo has been cloned, can:\r\n1. Create a new MVC 6 project from the ASP.NET Web Application / ASP.NET 5 Preview Templates / Web Application template\r\n2. Create a new Function Breakpoint at `Microsoft.AspNet.Mvc.TagHelpers.LinkTagHelper.Process`\r\n3. Create a new Function Breakpoint at `Microsoft.AspNet.Mvc.TagHelpers.ScriptTagHelper.ProcessAsync` (or `Microsoft.AspNet.Mvc.TagHelpers.ScriptTagHelper.Process` if debugging very recent MVC builds)\r\n3. Debug the application\r\n4. When a breakpoint is hit and you're informed the PDB couldn't be found, navigate to whatever the correct location may be. (Hopefully `http://srv.symbolsource.org/pdb/Public` or `http://srv.symbolsource.org/pdb/MyGet` has what you need.)\r\n5. When informed the source file couldn't be found, navigate to the `src\\Microsoft.AspNet.Mvc.TagHelpers` directory in the MVC repo.\r\n\r\nObserve: The solution is not completely revamped, both breakpoints are successfully hit, and whichever one is hit second does not require manual intervention to find the source file. Things Just Work:tm:"},"comment":{"url":"https://api.github.com/repos/aspnet/dnx/issues/comments/125278256","html_url":"https://github.com/aspnet/dnx/issues/2350#issuecomment-125278256","issue_url":"https://api.github.com/repos/aspnet/dnx/issues/2350","id":125278256,"user":{"login":"muratg","id":1808428,"avatar_url":"https://avatars.githubusercontent.com/u/1808428?v=3","gravatar_id":"","url":"https://api.github.com/users/muratg","html_url":"https://github.com/muratg","followers_url":"https://api.github.com/users/muratg/followers","following_url":"https://api.github.com/users/muratg/following{/other_user}","gists_url":"https://api.github.com/users/muratg/gists{/gist_id}","starred_url":"https://api.github.com/users/muratg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muratg/subscriptions","organizations_url":"https://api.github.com/users/muratg/orgs","repos_url":"https://api.github.com/users/muratg/repos","events_url":"https://api.github.com/users/muratg/events{/privacy}","received_events_url":"https://api.github.com/users/muratg/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T17:22:57Z","updated_at":"2015-07-27T17:22:57Z","body":"Closing this one as by design."}}