1

我看到很多构建警告本质上是说正在从 .netstandard 恢复服务结构的库。我在 Mac 上,根据 Microsoft 文档在 Linux vm 上运行我的 SF 集群

 warning NU1701: Package 'Microsoft.ServiceFabric.Services 2.7.198' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.

我的服务将部署到集群,但无法初始化

Error event: SourceId='System.Hosting', 
Property='CodePackageActivation:Code:EntryPoint'.
There was an error during CodePackage activation.The service host terminated with exit code:34304

这篇文章似乎表明这是因为托管我的集群的 vm 是 linux,它不能运行 .net 4.6 库,这是错误的。

可以假设这是因为 .net 标准库试图在 linux 上运行吗?此时有点失落。任何帮助将不胜感激。是否可以在 linux vm 上运行有状态的 .netcore 服务?

似乎在所有文档中都建议使用它,但我还没有在 linux 上看到它的完整指南。所有 Microsoft 文档都导致部署基于 Java 的服务。我找到了一些 .net 核心服务结构服务的 yeoman 模板,但在另一篇文章中没有迹象表明这些模板可以在 linux 上运行。任何人都可以确认吗?

4

0 回答 0