Service Fabric .net core app not .net core

不问归期 提交于 2020-01-25 07:50:07

问题


We are in the process of building an service fabric application and have run into a bit of a issue, whenever you user Visual studio to create a new service fabric app and you specify to use a .Net core app, the app/api that is create is a .Net framework app and not .Net core.

<TargetFramework>net452</TargetFramework>

Instead of:

<TargetFramework>netcoreapp2.0</TargetFramework>

Does anyone know the reason for this, or is this intended behavior?

Regards


回答1:


You need to use the preview tools to build and run .NET core apps.

A preview of Visual Studio 2017 Service Fabric Tools 2.0 is now available for download, packed with new .NET Core and Container tooling for Service Fabric application development. To start using the 2.0 preview tools, you'll need to install:

  • Visual Studio 2017 Preview (version 15.4.0 preview 4.0 or later)
  • Service Fabric Tools 2.0 Preview

More info here.



来源:https://stackoverflow.com/questions/48372498/service-fabric-net-core-app-not-net-core

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!