【发布时间】:2018-08-31 07:15:12
【问题描述】:
我正在尝试将我的 F# ASP.NET Core 应用程序部署到 Azure 应用程序服务。不幸的是,每次我尝试部署时,我的项目文件中都会添加一个 <UserSecretsId> 元素,正如 in this article 所解释的那样,这会导致构建失败并出现以下错误:
A function labeled with the 'EntryPointAttribute' attribute must be the last declaration in the last file in the compilation sequence
文章解释了错误发生的原因,并指示通过从项目文件中删除元素并在 AssemblyInfo.fs 中添加用户机密 ID 来修复它。我已经尝试过了,然后可以手动构建,但是每次我尝试部署时,部署过程仍然会在我的项目文件中添加一个带有新 ID 的 <UserSecretsId> 元素,导致构建失败。
有什么方法可以将 F# ASP.NET Core 应用发布到 Azure 应用服务?
(也在Microsoft/visualfsharp#5549上报道)
【问题讨论】:
-
用错误消息和更多内容更新了问题。
标签: azure f# azure-web-app-service