Service Fabric .net 核心应用程序不是 .net 核心 [英] Service Fabric .net core app not .net core

本文介绍了Service Fabric .net 核心应用程序不是 .net 核心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在构建 Service Fabric 应用程序,但遇到了一些问题,每当您使用 Visual Studio 创建新的 Service Fabric 应用程序并指定使用 .Net 核心应用程序时,该应用程序/创建的 api 是 .Net 框架应用程序,而不是 .Net 核心.

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>

代替:

<TargetFramework>netcoreapp2.0</TargetFramework>

有谁知道这是什么原因,或者这是有意的行为吗?

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

问候

推荐答案

您需要使用预览工具来构建和运行 .NET 核心应用程序.

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

Visual Studio 2017 Service Fabric Tools 2.0 预览版现已发布可供下载,包含新的 .NET Core 和容器用于 Service Fabric 应用程序开发的工具.开始使用2.0 预览工具,您需要安装:

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 预览版(15.4.0 版预览版 4.0 或更高版本)
  • Service Fabric 工具 2.0 预览版

更多信息 此处.

这篇关于Service Fabric .net 核心应用程序不是 .net 核心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆