payload: {"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/AspNetCore/issues/9789","repository_url":"https://api.github.com/repos/aspnet/AspNetCore","labels_url":"https://api.github.com/repos/aspnet/AspNetCore/issues/9789/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/AspNetCore/issues/9789/comments","events_url":"https://api.github.com/repos/aspnet/AspNetCore/issues/9789/events","html_url":"https://github.com/aspnet/AspNetCore/issues/9789","id":437838080,"node_id":"MDU6SXNzdWU0Mzc4MzgwODA=","number":9789,"title":"Support serving embedded static files when publishing ASP.NET Core 3.0 apps as a single file","user":{"login":"DamianEdwards","id":249088,"node_id":"MDQ6VXNlcjI0OTA4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/249088?v=4","gravatar_id":"","url":"https://api.github.com/users/DamianEdwards","html_url":"https://github.com/DamianEdwards","followers_url":"https://api.github.com/users/DamianEdwards/followers","following_url":"https://api.github.com/users/DamianEdwards/following{/other_user}","gists_url":"https://api.github.com/users/DamianEdwards/gists{/gist_id}","starred_url":"https://api.github.com/users/DamianEdwards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DamianEdwards/subscriptions","organizations_url":"https://api.github.com/users/DamianEdwards/orgs","repos_url":"https://api.github.com/users/DamianEdwards/repos","events_url":"https://api.github.com/users/DamianEdwards/events{/privacy}","received_events_url":"https://api.github.com/users/DamianEdwards/received_events","type":"User","site_admin":false},"labels":[{"id":1166120226,"node_id":"MDU6TGFiZWwxMTY2MTIwMjI2","url":"https://api.github.com/repos/aspnet/AspNetCore/labels/area-hosting","name":"area-hosting","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-04-26T20:41:55Z","updated_at":"2019-04-26T22:23:01Z","closed_at":null,"author_association":"MEMBER","body":".NET Core 3.0 has added support for publishing applications as a single file via the `PublishSingleFile` project property in preview5. When doing so with an ASP.NET Core application though, any static files that the site relies on from `wwwroot` can't be served by default, as the app is not configured to do so, rather expecting them to be in the content root (which is the app's current directory on launch by default).\r\n\r\nWe should investigate whether we can make a change to support this scenario better OOTB, e.g. changing the default `WebHost` to detect if it's being launched from a single file and in that case setting the content root provider to something that will be able to serve the statics files correctly (embedded file provider perhaps?).\r\n\r\n@davidfowl @glennc @anurse "},"comment":{"url":"https://api.github.com/repos/aspnet/AspNetCore/issues/comments/487219337","html_url":"https://github.com/aspnet/AspNetCore/issues/9789#issuecomment-487219337","issue_url":"https://api.github.com/repos/aspnet/AspNetCore/issues/9789","id":487219337,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NzIxOTMzNw==","user":{"login":"anurse","id":7574,"node_id":"MDQ6VXNlcjc1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7574?v=4","gravatar_id":"","url":"https://api.github.com/users/anurse","html_url":"https://github.com/anurse","followers_url":"https://api.github.com/users/anurse/followers","following_url":"https://api.github.com/users/anurse/following{/other_user}","gists_url":"https://api.github.com/users/anurse/gists{/gist_id}","starred_url":"https://api.github.com/users/anurse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anurse/subscriptions","organizations_url":"https://api.github.com/users/anurse/orgs","repos_url":"https://api.github.com/users/anurse/repos","events_url":"https://api.github.com/users/anurse/events{/privacy}","received_events_url":"https://api.github.com/users/anurse/received_events","type":"User","site_admin":false},"created_at":"2019-04-26T22:23:01Z","updated_at":"2019-04-26T22:23:01Z","author_association":"MEMBER","body":"> that's certainly the easiest thing to make this work in 3.0, but as usual it gives me pause when things differ between \"normal\" .NET Core projects and web projects.\r\n\r\nI actually find the embedding of wwwroot content kinda suprising. Though I guess gone are the days of FTPing new content to your site ;). I suppose if people chose to do the single-file build, it's not unreasonable to embed the files."}}
other: {"actor":{"display_login":"anurse"}}