每当您使用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核心
发布评论