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

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

问题描述

每当您使用Visual Studio创建新的服务结构应用程序并指定使用.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工具2.0的预览现已发布 可供下载,其中包含新的.NET Core和Container 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 Tools 2.0预览版

更多信息此处.

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

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