问题
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