{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/4251","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/4251/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/4251/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/4251/events","html_url":"https://github.com/dotnet/cli/issues/4251","id":179300349,"number":4251,"title":"unexpected/unnecessary `refs` directory in published output of ASP.NET Core application","user":{"login":"josalem","id":20667293,"avatar_url":"https://avatars.githubusercontent.com/u/20667293?v=3","gravatar_id":"","url":"https://api.github.com/users/josalem","html_url":"https://github.com/josalem","followers_url":"https://api.github.com/users/josalem/followers","following_url":"https://api.github.com/users/josalem/following{/other_user}","gists_url":"https://api.github.com/users/josalem/gists{/gist_id}","starred_url":"https://api.github.com/users/josalem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josalem/subscriptions","organizations_url":"https://api.github.com/users/josalem/orgs","repos_url":"https://api.github.com/users/josalem/repos","events_url":"https://api.github.com/users/josalem/events{/privacy}","received_events_url":"https://api.github.com/users/josalem/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-26T18:17:50Z","updated_at":"2016-09-26T22:09:46Z","closed_at":"2016-09-26T19:45:16Z","body":"## Steps to reproduce\r\n\r\n1. create new ASP.NET Core (.NET Framework) application template in Visual Studio\r\n2. publish a release build\r\n\r\n## Expected  behavior\r\n- The only DLLs included local to the `.exe` would be third-party libraries loaded as nugget packages\r\n\r\n## Actual behavior\r\n- There is a `refs` directory that contains many `System.*` DLLs, a copy of the application, and the DLL for Razor Tooling\r\n- The `refs` directory can be removed and the application still runs and Razor pages still render\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n```\r\n.NET Command Line Tools (1.0.0-preview2-003121)\r\n\r\nProduct Information:\r\n Version:            1.0.0-preview2-003121\r\n Commit SHA-1 hash:  1e9d529bc5\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.14393\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/249712500","html_url":"https://github.com/dotnet/cli/issues/4251#issuecomment-249712500","issue_url":"https://api.github.com/repos/dotnet/cli/issues/4251","id":249712500,"user":{"login":"pranavkm","id":174281,"avatar_url":"https://avatars.githubusercontent.com/u/174281?v=3","gravatar_id":"","url":"https://api.github.com/users/pranavkm","html_url":"https://github.com/pranavkm","followers_url":"https://api.github.com/users/pranavkm/followers","following_url":"https://api.github.com/users/pranavkm/following{/other_user}","gists_url":"https://api.github.com/users/pranavkm/gists{/gist_id}","starred_url":"https://api.github.com/users/pranavkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranavkm/subscriptions","organizations_url":"https://api.github.com/users/pranavkm/orgs","repos_url":"https://api.github.com/users/pranavkm/repos","events_url":"https://api.github.com/users/pranavkm/events{/privacy}","received_events_url":"https://api.github.com/users/pranavkm/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T22:09:46Z","updated_at":"2016-09-26T22:09:46Z","body":"The expected behavior isn't necessarily correct. Razor compilation is attempting to use the same refs to compile the view at runtime as the ones that the application used. There's some fallback involved on desktop where it'll attempt to resolve under Program Files\\Reference Assemblies, but those aren't guaranteed to always exist and don't work for CoreCLR. So deleting the refs directory might result in runtime compilation failures. I'd recommend not deleting them if your application uses Views."}}
{"actor":{"display_login":"pranavkm"}}