Service Fabric .net核心应用程序不是.net核心

编程入门 行业动态 更新时间:2024-10-25 15:19:57
本文介绍了Service Fabric 核心应用程序不是核心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

每当您使用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核心

本文发布于:2023-11-09 10:08:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1572093.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:核心   应用程序   Service   Fabric   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!