{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/5549","repository_url":"https://api.github.com/repos/Microsoft/visualfsharp","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/5549/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/5549/comments","events_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/5549/events","html_url":"https://github.com/Microsoft/visualfsharp/issues/5549","id":353282700,"node_id":"MDU6SXNzdWUzNTMyODI3MDA=","number":5549,"title":"UserSecretsId prevents any deployment of F# ASP.NET Core app to Azure App Service","user":{"login":"cmeeren","id":7766733,"node_id":"MDQ6VXNlcjc3NjY3MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/7766733?v=4","gravatar_id":"","url":"https://api.github.com/users/cmeeren","html_url":"https://github.com/cmeeren","followers_url":"https://api.github.com/users/cmeeren/followers","following_url":"https://api.github.com/users/cmeeren/following{/other_user}","gists_url":"https://api.github.com/users/cmeeren/gists{/gist_id}","starred_url":"https://api.github.com/users/cmeeren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmeeren/subscriptions","organizations_url":"https://api.github.com/users/cmeeren/orgs","repos_url":"https://api.github.com/users/cmeeren/repos","events_url":"https://api.github.com/users/cmeeren/events{/privacy}","received_events_url":"https://api.github.com/users/cmeeren/received_events","type":"User","site_admin":false},"labels":[{"id":295281554,"node_id":"MDU6TGFiZWwyOTUyODE1NTQ=","url":"https://api.github.com/repos/Microsoft/visualfsharp/labels/Area-External","name":"Area-External","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-23T08:46:33Z","updated_at":"2018-08-24T16:04:14Z","closed_at":null,"author_association":"NONE","body":"When deploying an F# ASP.NET Core app to Azure App Service. the deployment process adds a `<UserSecretsId>` element to the fsproj if it's not already present. As explained [in this article](https://medium.com/@dmytrol/making-asp-net-core-user-secrets-work-in-f-projects-9b04572d81f6), this element causes the build to fail with the following error:\r\n\r\n`A function labeled with the 'EntryPointAttribute' attribute must be the last declaration in the last file in the compilation sequence`\r\n\r\nThe article explains why the error occurs and instructs to fix it by removing the element from the project file and instead adding the user secrets ID in an `AssemblyInfo.fs`. I have tried this and can then build manually, but each time I try to deploy, the deployment process still adds a `<UserSecretsId>` element with a new ID in my project file, causing the build to fail.\r\n\r\nIn other words, this bug seems to **completely block deployment of F# ASP.NET Core apps to Azure App Service.** It might happen for other Azure deployments too; I haven't tested.\r\n\r\nLet me know if I can provide any other relevant info.\r\n\r\n(Also [posted as a question on SO](https://stackoverflow.com/questions/51979892/usersecretsid-prevents-any-deployment-of-f-asp-net-core-app-to-azure-app-servic) to try to find workarounds.)"},"comment":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/comments/415804876","html_url":"https://github.com/Microsoft/visualfsharp/issues/5549#issuecomment-415804876","issue_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/5549","id":415804876,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTgwNDg3Ng==","user":{"login":"vijayrkn","id":3981619,"node_id":"MDQ6VXNlcjM5ODE2MTk=","avatar_url":"https://avatars0.githubusercontent.com/u/3981619?v=4","gravatar_id":"","url":"https://api.github.com/users/vijayrkn","html_url":"https://github.com/vijayrkn","followers_url":"https://api.github.com/users/vijayrkn/followers","following_url":"https://api.github.com/users/vijayrkn/following{/other_user}","gists_url":"https://api.github.com/users/vijayrkn/gists{/gist_id}","starred_url":"https://api.github.com/users/vijayrkn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijayrkn/subscriptions","organizations_url":"https://api.github.com/users/vijayrkn/orgs","repos_url":"https://api.github.com/users/vijayrkn/repos","events_url":"https://api.github.com/users/vijayrkn/events{/privacy}","received_events_url":"https://api.github.com/users/vijayrkn/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T16:04:14Z","updated_at":"2018-08-24T16:04:14Z","author_association":"MEMBER","body":"The publish process should not be adding anything to the fsproj. Can you please provide a simple repro project? This will help us diagnose the issue faster."}}
{"actor":{"display_login":"vijayrkn"}}