简体   繁体   English

将Cloud Service Web角色迁移到具有存储依赖性的Service Fabric

[英]Migrate a Cloud Service Web Role to Service Fabric with Storage Dependencies

Following this guide from Microsoft, it seems fairly straightforward to migrate web and worker roles to service fabric. 遵循Microsoft的本指南 ,将Web和工作人员角色迁移到服务结构似乎相当简单。 This picture specifically shows how you can still use Azure Storage from Service Fabric apps. 此图片专门显示了如何仍然可以通过Service Fabric应用程序使用Azure存储。

Since web roles must be .net core on service fabric, this requires that the storage sdk support .net core but I have been unable to find libraries that are compatible. 由于Web角色必须是服务结构上的.net核心,因此这要求存储SDK支持.net核心,但是我一直找不到兼容的库。 There seems to be a storage preview package that does support netstandard1.6 but it's dependencies do not. 似乎有一个不支持netstandard1.6的存储预览包,但它的依赖项不支持。

Has anyone gotten this to work? 有没有人得到这个工作? Basically, I'm looking for a storage package or configuration that will work with .net core so that I can use Azure storage from a asp mvc core app. 基本上,我正在寻找可以与.net core配合使用的存储程序包或配置,以便可以从asp mvc core应用程序中使用Azure存储。

ASP.NET Core web applications don't actually need to be compiled against .NET Core - these are two separate things. 实际上,ASP.NET Core Web应用程序不需要针对.NET Core进行编译-这是两件分开的事情。 In fact the Service Fabric SDK itself is still full .NET Framework. 实际上,Service Fabric SDK本身仍然是完整的.NET Framework。 The terminology is confusing (we're bad at naming things). 术语令人困惑(我们不擅长命名事物)。

" ASP.NET Core " is the name of the latest ASP.NET product that Service Fabric supports. ASP.NET Core ”是Service Fabric支持的最新ASP.NET产品的名称。

You can build an ASP.NET Core application against either .NET Core or .NET Framework. 您可以针对.NET Core或.NET Framework构建ASP.NET Core应用程序。 In Visual Studio, if you create a new project under C# -> Web, you'll see ASP.NET Core options for both .NET Core and .NET Framework. 在Visual Studio中,如果在C#-> Web下创建一个新项目,则将看到.NET Core和.NET Framework的ASP.NET Core选项。

On Service Fabric, currently, you should use ASP.NET Core built against .NET Framework, not .NET Core. 当前,在Service Fabric上,应该使用针对.NET Framework而不是.NET Core构建的ASP.NET Core。 In Visual Studio again, if you create a new project under C# -> Cloud -> Service Fabric Application, you'll have the option of adding an ASP.NET Core service - this will be created using full .NET Framework. 再次在Visual Studio中,如果您在C#-> Cloud-> Service Fabric应用程序下创建一个新项目,则可以选择添加ASP.NET Core服务-该服务将使用完整的.NET Framework创建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM