【问题标题】:Azure Mobile Apps Server on .NET 5.NET 5 上的 Azure 移动应用服务器
【发布时间】:2021-10-05 22:17:52
【问题描述】:

这些东西是怎么回事?截至目前,不支持使用 C#/Net 编写后端。

Repo 非常古老,除了 .NET Framework 示例之外不包含任何内容。生成的包显然不兼容 NET 5,尽管 Nuget 浏览器中没有列出。

This 似乎是当前站点,但 ASP.NET 中的服务器示例已损坏,甚至客户端代码的快速入门文档也提到了 NodeJs 服务器的部署。 您可以通过将一些依赖项重新连接到 Repo 中的 Datasync 项目来编译服务器示例,但是我无法运行它(可能是由于我对 Azure 配置内容缺乏了解)。

有消息吗?

【问题讨论】:

    标签: c# .net azure mobile


    【解决方案1】:

    用于 Azure 移动应用的 ASP.NET Framework SDK

    创建 Azure 移动应用 ASP.NET Framework 后端

    下载并初始化 SDK

    选择管理 NuGet 包...。,安装

      Microsoft.Azure.Mobile.Server
      Microsoft.Azure.Mobile.Server.Quickstart
      Microsoft.Owin.Host.SystemWeb
    

    初始化服务器项目

    添加启动类 包括 Microsoft SDK 扩展

    Microsoft.Azure.Mobile.Server.Quickstart, Microsoft.Azure.Mobile.Server.Home,
    Microsoft.Azure.Mobile.Server.Tables,  Microsoft.Azure.Mobile.Server.Entity,
    Microsoft.Azure.Mobile.Server.Authentication,
    Microsoft.Azure.Mobile.Server.Notifications,
    Microsoft.Azure.Mobile.Server.CrossDomain,Microsoft.Azure.Mobile.Server.Login
    

    在 Azure 中发布服务器项目

    请关注 ASP.NET Framework SDK for Azure Mobile Apps以供参考。

    【讨论】:

    • 是的,这样做了,但我正在寻找 .NET 5 或至少是迁移路线图,因为我正在为一个新项目做决策。是否有任何 C# 替代品,甚至是用于 Azure 上的移动应用的商业替代品?我对 DataSync 特别感兴趣。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-09-04
    • 1970-01-01
    • 2016-04-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-09
    相关资源
    最近更新 更多